记录详情

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/cchGJabU.o: In function `main':
foo.cc:(.text.startup+0x28): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 5ms 4.352 MiB
#2 Accepted 5ms 6.25 MiB
#3 Accepted 4ms 4.363 MiB
#4 Accepted 3ms 4.359 MiB
#5 Accepted 5ms 4.363 MiB
#6 Accepted 5ms 4.34 MiB
#7 Accepted 3ms 4.371 MiB
#8 Accepted 82ms 12.25 MiB
#9 Accepted 108ms 10.859 MiB
#10 Accepted 60ms 16.48 MiB
#11 Accepted 81ms 18.852 MiB
#12 Accepted 518ms 32.375 MiB
#13 Accepted 515ms 38.688 MiB
#14 Accepted 959ms 44.992 MiB
#15 Accepted 4ms 4.25 MiB
#16 Accepted 4ms 4.363 MiB
#17 Accepted 7ms 8.375 MiB
#18 Accepted 7ms 4.5 MiB
#19 Accepted 3ms 4.363 MiB
#20 Accepted 11ms 8.352 MiB
#21 Accepted 8ms 6.402 MiB
#22 Accepted 127ms 15.211 MiB
#23 Accepted 60ms 6.488 MiB
#24 Accepted 49ms 8.328 MiB
#25 Accepted 63ms 6.355 MiB
#26 Accepted 50ms 4.461 MiB
#27 Accepted 891ms 57.875 MiB
#28 Accepted 1701ms 58.051 MiB
#29 Accepted 906ms 55.375 MiB
#30 Accepted 1598ms 58.105 MiB

信息

递交者
类型
递交
题目
A Horrible Poem
题目数据
下载
语言
C++
递交时间
2018-09-18 21:56:39
评测时间
2018-09-18 21:56:53
评测机
分数
300
总耗时
7858ms
峰值内存
58.105 MiB