记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:27: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:27: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:36: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:36: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/ccuuFVVA.o: In function `main':
foo.cc:(.text.startup+0x3a): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 6ms 6.359 MiB
#2 Accepted 4ms 4.359 MiB
#3 Accepted 5ms 4.352 MiB
#4 Accepted 2ms 4.328 MiB
#5 Accepted 4ms 4.25 MiB
#6 Accepted 2ms 4.359 MiB
#7 Accepted 4ms 4.359 MiB
#8 Accepted 119ms 8.746 MiB
#9 Accepted 138ms 10.75 MiB
#10 Accepted 107ms 13.09 MiB
#11 Accepted 93ms 13.094 MiB
#12 Accepted 651ms 33.957 MiB
#13 Accepted 698ms 39.0 MiB
#14 Accepted 1185ms 46.875 MiB
#15 Accepted 3ms 4.355 MiB
#16 Accepted 3ms 4.371 MiB
#17 Accepted 13ms 8.348 MiB
#18 Accepted 11ms 6.375 MiB
#19 Accepted 3ms 6.375 MiB
#20 Accepted 9ms 4.492 MiB
#21 Accepted 10ms 4.465 MiB
#22 Accepted 107ms 14.496 MiB
#23 Accepted 85ms 8.344 MiB
#24 Accepted 94ms 8.363 MiB
#25 Accepted 83ms 4.469 MiB
#26 Accepted 82ms 8.352 MiB
#27 Accepted 1207ms 57.984 MiB
#28 Accepted 2153ms 58.031 MiB
#29 Accepted 1269ms 55.859 MiB
#30 Accepted 2139ms 58.0 MiB

信息

递交者
类型
递交
题目
A Horrible Poem
题目数据
下载
语言
C++
递交时间
2018-09-05 21:47:44
评测时间
2018-09-05 21:47:44
评测机
分数
300
总耗时
10306ms
峰值内存
58.031 MiB