记录详情

Compile Error

/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);
                                               ^~~
/in/foo.cc:42:19: error: 'prinf' was not declared in this scope
   prinf("%d\n",ans);
                   ^

信息

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