记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:38:12: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  n=read(); gets(s); q=read();
            ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:38:18: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  n=read(); gets(s); q=read();
                  ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:2:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 #define rep(i,l,r) for(register int i=(l);i<=(r);i++)
                    ^
/in/foo.cc:47:3: note: in expansion of macro 'rep'
   rep(j,0,25) k=gcd(k,cnt[r][j]-cnt[l-1][j]); int limit=sqrt(k);
   ^~~
/in/foo.cc:47:47: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   rep(j,0,25) k=gcd(k,cnt[r][j]-cnt[l-1][j]); int limit=sqrt(k);
                                               ^~~
/tmp/ccWpL8pF.o: In function `main':
foo.cc:(.text.startup+0x28): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 3ms 6.336 MiB
#2 Accepted 5ms 6.355 MiB
#3 Accepted 3ms 4.375 MiB
#4 Accepted 3ms 4.336 MiB
#5 Accepted 5ms 4.375 MiB
#6 Accepted 4ms 4.355 MiB
#7 Accepted 4ms 4.203 MiB
#8 Accepted 60ms 12.5 MiB
#9 Accepted 121ms 14.359 MiB
#10 Accepted 110ms 16.863 MiB
#11 Accepted 96ms 18.375 MiB
#12 Accepted 539ms 32.5 MiB
#13 Accepted 548ms 38.5 MiB
#14 Accepted 949ms 45.711 MiB
#15 Accepted 6ms 4.359 MiB
#16 Accepted 13ms 4.227 MiB
#17 Accepted 17ms 6.375 MiB
#18 Accepted 9ms 4.488 MiB
#19 Accepted 3ms 4.375 MiB
#20 Accepted 7ms 4.375 MiB
#21 Accepted 10ms 4.375 MiB
#22 Accepted 114ms 15.281 MiB
#23 Accepted 42ms 10.375 MiB
#24 Accepted 44ms 8.25 MiB
#25 Accepted 58ms 4.344 MiB
#26 Accepted 59ms 6.484 MiB
#27 Accepted 958ms 58.098 MiB
#28 Accepted 1701ms 58.078 MiB
#29 Accepted 925ms 54.746 MiB
#30 Accepted 1537ms 58.0 MiB

信息

递交者
类型
递交
题目
A Horrible Poem
题目数据
下载
语言
C++
递交时间
2018-09-18 21:55:46
评测时间
2018-09-18 21:57:34
评测机
分数
300
总耗时
7969ms
峰值内存
58.098 MiB