/ new_bzoj /

记录详情

Compile Error

/in/foo.cc:56:2: error: stray '#' in program
 }#include<iostream>
  ^
/in/foo.cc:111:2: error: stray '#' in program
 }#include<iostream>
  ^
/in/foo.cc:166:2: error: stray '#' in program
 }#include<iostream>
  ^
/in/foo.cc:221:2: error: stray '#' in program
 }#include<iostream>
  ^
/in/foo.cc:276:2: error: stray '#' in program
 }#include<iostream>
  ^
/in/foo.cc:331:2: error: stray '#' in program
 }#include<iostream>
  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:39:20: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int (*)[1000005]' [-Wformat=]
  scanf("%s%s",&A,&B);
                    ^
/in/foo.cc:39:20: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'int (*)[1000005]' [-Wformat=]
/in/foo.cc: At global scope:
/in/foo.cc:56:3: error: 'include' does not name a type
 }#include<iostream>
   ^~~~~~~
/in/foo.cc:63:5: error: redefinition of 'int n'
 int n,i,A[N],B[N],tr[N],num[N];
     ^
/in/foo.cc:8:5: note: 'int n' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
     ^
/in/foo.cc:63:7: error: redefinition of 'int i'
 int n,i,A[N],B[N],tr[N],num[N];
       ^
/in/foo.cc:8:7: note: 'int i' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
       ^
/in/foo.cc:63:12: error: redefinition of 'int A [1000005]'
 int n,i,A[N],B[N],tr[N],num[N];
            ^
/in/foo.cc:8:9: note: 'int A [1000005]' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
         ^
/in/foo.cc:63:17: error: redefinition of 'int B [1000005]'
 int n,i,A[N],B[N],tr[N],num[N];
                 ^
/in/foo.cc:8:14: note: 'int B [1000005]' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
              ^
/in/foo.cc:63:23: error: redefinition of 'int tr [1000005]'
 int n,i,A[N],B[N],tr[N],num[N];
                       ^
/in/foo.cc:8:19: note: 'int tr [1000005]' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
                   ^~
/in/foo.cc:63:30: error: redefinition of 'int num [1000005]'
 int n,i,A[N],B[N],tr[N],num[N];
                              ^
/in/foo.cc:8:25: note: 'int num [1000005]' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
                         ^~~
/in/foo.cc:64:8: error: redefinition of 'struct dian'
 struct dian{int w,v;}a[N],b[N];
        ^~~~
/in/foo.cc:9:8: error: previous definition of 'struct dian'
 struct dian{int w,v;}a[N],b[N];
        ^~~~
/in/foo.cc:64:25: error: conflicting declaration 'int a [1000005]'
 struct dian{int w,v;}a[N],b[N];
                         ^
/in/foo.cc:9:22: note: previous declaration as 'dian a [1000005]'
 struct dian{int w,v;}a[N],b[N];
                      ^
/in/foo.cc:64:30: error: conflicting declaration 'int b [1000005]'
 struct dian{int w,v;}a[N],b[N];
                              ^
/in/foo.cc:9:27: note: previous declaration as 'dian b [1000005]'
 struct dian{int w,v;}a[N],b[N];
                           ^
/in/foo.cc: In function 'bool cmp(const dian&, const dian&)':
/in/foo.cc:65:6: error: redefinition of 'bool cmp(const dian&, const dian&)'
 bool cmp(const dian&i,const dian&j)
      ^~~
/in/foo.cc:10:6: note: 'bool cmp(const dian&, const dian&)' previously defined here
 bool cmp(const dian&i,const dian&j)
      ^~~
/in/foo.cc: In function 'int lowbit(int)':
/in/foo.cc:71:5: error: redefinition of 'int lowbit(int)'
 int lowbit(int x)
     ^~~~~~
/in/foo.cc:16:5: note: 'int lowbit(int)' previously defined here
 int lowbit(int x)
     ^~~~~~
/in/foo.cc: In function 'int find(int)':
/in/foo.cc:75:5: error: redefinition of 'int find(int)'
 int find(int x)
     ^~~~
/in/foo.cc:20:5: note: 'int find(int)' previously defined here
 int find(int x)
     ^~~~
/in/foo.cc: In function 'void insert(int)':
/in/foo.cc:84:6: error: redefinition of 'void insert(int)'
 void insert(int x)
      ^~~~~~
/in/foo.cc:29:6: note: 'void insert(int)' previously defined here
 void insert(int x)
      ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:91:5: error: redefinition of 'int main()'
 int main()
     ^~~~
/in/foo.cc:36:5: note: 'int main()' previously defined here
 int main()
     ^~~~
/in/foo.cc:94:20: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int (*)[1000005]' [-Wformat=]
  scanf("%s%s",&A,&B);
                    ^
/in/foo.cc:94:20: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'int (*)[1000005]' [-Wformat=]
/in/foo.cc: At global scope:
/in/foo.cc:111:3: error: 'include' does not name a type
 }#include<iostream>
   ^~~~~~~
/in/foo.cc:118:5: error: redefinition of 'int n'
 int n,i,A[N],B[N],tr[N],num[N];
     ^
/in/foo.cc:8:5: note: 'int n' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
     ^
/in/foo.cc:118:7: error: redefinition of 'int i'
 int n,i,A[N],B[N],tr[N],num[N];
       ^
/in/foo.cc:8:7: note: 'int i' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
       ^
/in/foo.cc:118:12: error: redefinition of 'int A [1000005]'
 int n,i,A[N],B[N],tr[N],num[N];
            ^
/in/foo.cc:8:9: note: 'int A [1000005]' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
         ^
/in/foo.cc:118:17: error: redefinition of 'int B [1000005]'
 int n,i,A[N],B[N],tr[N],num[N];
                 ^
/in/foo.cc:8:14: note: 'int B [1000005]' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
              ^
/in/foo.cc:118:23: error: redefinition of 'int tr [1000005]'
 int n,i,A[N],B[N],tr[N],num[N];
                       ^
/in/foo.cc:8:19: note: 'int tr [1000005]' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
                   ^~
/in/foo.cc:118:30: error: redefinition of 'int num [1000005]'
 int n,i,A[N],B[N],tr[N],num[N];
                              ^
/in/foo.cc:8:25: note: 'int num [1000005]' previously declared here
 int n,i,A[N],B[N],tr[N],num[N];
                         ^~~
/in/foo.cc:119:8: error: redefinition of 'struct dian'
 struct dian{int w,v;}a[N],b[N];
        ^~~~
/in/foo.cc:9:8: error: previous definition of 'struct dian'
 struct dian{int w,v;}a[N],b[N];
        ^~~~
/in/foo.cc:119:25: error: conflicting declaration 'int a [1000005]'
 struct dian{int w,v;}a[N],b[N];
                         ^
/in/foo.cc:9:22: note: previous declaration as 'dian a [1000005]'
 struct dian{int w,v;}a[N],b[N];
                      ^
/in/foo.cc:119:30: error: conflicting declaration 'int b [1000005]'
 struct dian{int w,v;}a[N],b[N];
                              ^
/in/foo.cc:9:27: note: previous declaration as 'dian b [1000005]'
 struct dian{int w,v;}a[N],b[N];
                           ^
/in/foo.cc: In function 'bool cmp(const dian&, const dian&)':
/in/foo.cc:120:6: error: redefinition of 'bool cmp(const dian&, const dian&)'
 bool cmp(const dian&i,const dian&j)
      ^~~
/in/foo.cc:10:6: note: 'bool cmp(const dian&, const dian&)' previously defined here
 bool cmp(const dian&i,const dian&j)
      ^~~
/in/foo.cc: In function 'int lowbit(int)':
/in/foo.cc:126:5: error: redefinition of 'int lowbit(int)'
 int lowbit(int x)
     ^~~~~~
/in/foo.cc:16:5: note: 'int lowbit(int)' previously defined here
 int lowbit(int x)
     ^~~~~~
/in/foo.cc: In function 'int find(int)':
/in/foo.cc:130:5: error: redefinition of 'int find(int)'
 int find(int x)
     ^~~~
/in/foo.cc:20:5: note: 'int find(int)' previously defined here
 int find(int x)
     ^~~~
/in/foo.cc: In function 'void insert(int)':
/in/foo.cc:139:6: error: redefinition of 'void insert(int)'
 void insert(int x)
      ^~~~~~
/in/foo.cc:29:6: note: 'void insert(int)' previously defined here
 void insert(int x)
      ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:146:5: error: redefinition of 'int main()'
 int main()
     ^~~~
/in/foo.cc:36:5: note: 'int main()' previously defined here
 int main()
     ^~~~
/in/foo.cc:149:20: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int (*)[1000005]' [-Wformat=]
  scanf("%s%s",&A,&B);
                    ^
/in/foo.cc:149:20: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'int (*)[1000005]' [-Wformat=]
/in/foo.cc: At global scope:
/in/foo.cc:166:3: error: 'include' does not name a type
 

信息

递交者
类型
递交
题目
Letters
语言
C++
递交时间
2017-07-11 11:37:41
评测时间
2017-07-11 11:37:41
评测机
分数
0
总耗时
319ms
峰值内存
36.863 MiB