记录详情

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/cc5fAjNA.o: In function `main':
foo.cc:(.text.startup+0x28): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 5ms 6.391 MiB
#2 Accepted 4ms 6.25 MiB
#3 Accepted 10ms 8.375 MiB
#4 Accepted 4ms 6.355 MiB
#5 Accepted 3ms 4.355 MiB
#6 Accepted 5ms 4.25 MiB
#7 Accepted 3ms 4.203 MiB
#8 Accepted 46ms 10.609 MiB
#9 Accepted 78ms 12.742 MiB
#10 Accepted 73ms 13.09 MiB
#11 Accepted 78ms 18.75 MiB
#12 Accepted 530ms 33.375 MiB
#13 Accepted 531ms 38.672 MiB
#14 Accepted 926ms 45.375 MiB
#15 Accepted 4ms 4.344 MiB
#16 Accepted 5ms 4.355 MiB
#17 Accepted 17ms 8.344 MiB
#18 Accepted 12ms 6.375 MiB
#19 Accepted 4ms 4.477 MiB
#20 Accepted 6ms 4.477 MiB
#21 Accepted 8ms 4.5 MiB
#22 Accepted 95ms 18.5 MiB
#23 Accepted 41ms 4.492 MiB
#24 Accepted 49ms 8.348 MiB
#25 Accepted 52ms 4.469 MiB
#26 Accepted 44ms 8.332 MiB
#27 Accepted 840ms 58.098 MiB
#28 Accepted 1673ms 58.059 MiB
#29 Accepted 969ms 55.797 MiB
#30 Accepted 1614ms 57.898 MiB

信息

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