/ Vijos /

记录详情

Wrong Answer

foo.cc: In function ‘void PRE()’:
foo.cc:26:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   26 |         scanf("%d%d",&k,&n);
      |                ~^    ~~
      |                 |    |
      |                 int* long long int*
      |                %lld
foo.cc:26:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
   26 |         scanf("%d%d",&k,&n);
      |                  ~^     ~~
      |                   |     |
      |                   int*  long long int*
      |                  %lld
foo.cc: In function ‘int main()’:
foo.cc:40:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
   40 |                 printf("%d\n",k);
      |                         ~^    ~
      |                          |    |
      |                          int  long long int
      |                         %lld
foo.cc:45:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
   45 |                 printf("%d\n",f[n]);
      |                         ~^    ~~~~
      |                          |       |
      |                          int     long long int
      |                         %lld
foo.cc:64:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
   64 |         printf("%d",ans);
      |                 ~^  ~~~
      |                  |  |
      |                  |  long long int
      |                  int
      |                 %lld
# 状态 耗时 内存占用
#1 Accepted 3ms 768.0 KiB
#2 Accepted 3ms 768.0 KiB
#3 Accepted 2ms 768.0 KiB
#4 Accepted 3ms 768.0 KiB
#5 Wrong Answer L=2 (EOF 2ms 512.0 KiB
#6 Accepted 3ms 768.0 KiB
#7 Accepted 3ms 768.0 KiB
#8 Accepted 2ms 768.0 KiB
#9 Accepted 3ms 768.0 KiB
#10 Accepted 4ms 768.0 KiB

信息

递交者
类型
递交
题目
P1067 Warcraft III 守望者的烦恼
语言
C++
递交时间
2026-05-02 10:29:54
评测时间
2026-05-02 10:29:54
评测机
分数
90
总耗时
33ms
峰值内存
768.0 KiB