foo.cc:29:2: error: stray '#' in program
}#include <iostream>
^
foo.cc:57:2: error: stray '#' in program
}#include <iostream>
^
foo.cc:29:3: error: 'include' does not name a type
}#include <iostream>
^~~~~~~
foo.cc:35:5: error: redefinition of 'int n'
int n,m;
^
foo.cc:7:5: note: 'int n' previously declared here
int n,m;
^
foo.cc:35:7: error: redefinition of 'int m'
int n,m;
^
foo.cc:7:7: note: 'int m' previously declared here
int n,m;
^
foo.cc:36:12: error: redefinition of 'std::vector<int> a'
vector<int>a,b;
^
foo.cc:8:12: note: 'std::vector<int> a' previously declared here
vector<int>a,b;
^
foo.cc:36:14: error: redefinition of 'std::vector<int> b'
vector<int>a,b;
^
foo.cc:8:14: note: 'std::vector<int> b' previously declared here
vector<int>a,b;
^
foo.cc: In function 'int main()':
foo.cc:38:5: error: redefinition of 'int main()'
int main(){
^~~~
foo.cc:10:5: note: 'int main()' previously defined here
int main(){
^~~~
foo.cc: At global scope:
foo.cc:57:3: error: 'include' does not name a type
}#include <iostream>
^~~~~~~
foo.cc:63:5: error: redefinition of 'int n'
int n,m;
^
foo.cc:7:5: note: 'int n' previously declared here
int n,m;
^
foo.cc:63:7: error: redefinition of 'int m'
int n,m;
^
foo.cc:7:7: note: 'int m' previously declared here
int n,m;
^
foo.cc:64:12: error: redefinition of 'std::vector<int> a'
vector<int>a,b;
^
foo.cc:8:12: note: 'std::vector<int> a' previously declared here
vector<int>a,b;
^
foo.cc:64:14: error: redefinition of 'std::vector<int> b'
vector<int>a,b;
^
foo.cc:8:14: note: 'std::vector<int> b' previously declared here
vector<int>a,b;
^
foo.cc: In function 'int main()':
foo.cc:66:5: error: redefinition of 'int main()'
int main(){
^~~~
foo.cc:10:5: note: 'int main()' previously defined here
int main(){
^~~~
foo.cc: In function 'int main()':
foo.cc:11:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
~~~~~^~~~~~~~~~~~~~
foo.cc:13:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x;scanf("%d",&x);
~~~~~^~~~~~~~~
foo.cc:17:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x;scanf("%d",&x);
~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:39:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
~~~~~^~~~~~~~~~~~~~
foo.cc:41:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x;scanf("%d",&x);
~~~~~^~~~~~~~~
foo.cc:45:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x;scanf("%d",&x);
~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:67:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
~~~~~^~~~~~~~~~~~~~
foo.cc:69:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x;scanf("%d",&x);
~~~~~^~~~~~~~~
foo.cc:73:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x;scanf("%d",&x);
~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务