/in/foo.cc: In function 'bool judge(int)':
/in/foo.cc:15:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<A[var].size();i++)
~^~~~~~~~~~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:47:11: error: redefinition of 'const int maxn'
const int maxn=1005;
^~~~
/in/foo.cc:6:11: note: 'const int maxn' previously defined here
const int maxn=1005;
^~~~
/in/foo.cc:48:19: error: redefinition of 'std::vector<int> A [1005]'
vector<int> A[maxn];
^
/in/foo.cc:7:13: note: 'std::vector<int> A [1005]' previously declared here
vector<int> A[maxn];
^
/in/foo.cc:49:17: error: redefinition of 'short int f [1005]'
short int f[maxn];
^
/in/foo.cc:8:11: note: 'short int f [1005]' previously declared here
short int f[maxn];
^
/in/foo.cc:50:5: error: redefinition of 'int n'
int n,m;
^
/in/foo.cc:9:5: note: 'int n' previously declared here
int n,m;
^
/in/foo.cc:50:7: error: redefinition of 'int m'
int n,m;
^
/in/foo.cc:9:7: note: 'int m' previously declared here
int n,m;
^
/in/foo.cc:51:6: error: redefinition of 'bool p'
bool p;
^
/in/foo.cc:10:6: note: 'bool p' previously declared here
bool p;
^
/in/foo.cc: In function 'bool judge(int)':
/in/foo.cc:52:6: error: redefinition of 'bool judge(int)'
bool judge(int var)
^~~~~
/in/foo.cc:11:6: note: 'bool judge(int)' previously defined here
bool judge(int var)
^~~~~
/in/foo.cc:56:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<A[var].size();i++)
~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:62:5: error: redefinition of 'int main()'
int main()
^~~~
/in/foo.cc:21:5: note: 'int main()' previously defined here
int main()
^~~~