/ Vijos /

记录详情

Compile Error

/in/foo.cc:33:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main() {
      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:41:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
             int mid = l + r >> 1;
                       ~~^~~
/in/foo.cc: At global scope:
/in/foo.cc:62:11: error: conflicting declaration 'const long long int maxn'
 const int maxn = 200007;
           ^~~~
/in/foo.cc:4:11: note: previous declaration as 'const int maxn'
 const int maxn = 200007;
           ^~~~
/in/foo.cc: In function 'long long int read()':
/in/foo.cc:64:12: error: redefinition of 'long long int read()'
 inline int read() {
            ^~~~
/in/foo.cc:6:12: note: 'long long int read()' previously defined here
 inline int read() {
            ^~~~
/in/foo.cc: At global scope:
/in/foo.cc:71:15: error: redefinition of 'long long int prime [200007]'
 int prime[maxn],mu[maxn];bool p[maxn];
               ^
/in/foo.cc:13:5: note: 'long long int prime [200007]' previously declared here
 int prime[maxn],mu[maxn];bool p[maxn];
     ^~~~~
/in/foo.cc:71:24: error: redefinition of 'long long int mu [200007]'
 int prime[maxn],mu[maxn];bool p[maxn];
                        ^
/in/foo.cc:13:17: note: 'long long int mu [200007]' previously declared here
 int prime[maxn],mu[maxn];bool p[maxn];
                 ^~
/in/foo.cc:71:37: error: redefinition of 'bool p [200007]'
 int prime[maxn],mu[maxn];bool p[maxn];
                                     ^
/in/foo.cc:13:31: note: 'bool p [200007]' previously declared here
 int prime[maxn],mu[maxn];bool p[maxn];
                               ^
/in/foo.cc: In function 'void get_mu()':
/in/foo.cc:72:6: error: redefinition of 'void get_mu()'
 void get_mu() {
      ^~~~~~
/in/foo.cc:14:6: note: 'void get_mu()' previously defined here
 void get_mu() {
      ^~~~~~
/in/foo.cc: In function 'long long int check(long long int)':
/in/foo.cc:84:5: error: redefinition of 'long long int check(long long int)'
 int check(int x) {
     ^~~~~
/in/foo.cc:26:5: note: 'long long int check(long long int)' previously defined here
 int check(int x) {
     ^~~~~
/in/foo.cc: At global scope:
/in/foo.cc:91:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main() {
      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:91:1: error: redefinition of 'int main()'
 main() {
 ^~~~
/in/foo.cc:33:1: note: 'int main()' previously defined here
 main() {
 ^~~~
/in/foo.cc:96:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
         int mid = l + r >> 1;
                   ~~^~~

信息

递交者
类型
递交
题目
P1889 天真的因数分解
语言
C++
递交时间
2018-08-07 21:18:16
评测时间
2018-08-07 21:18:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes