foo.cc: In function 'int main()':
foo.cc:5:10: error: 'p' was not declared in this scope
cin>>n>>p;
^
foo.cc:15:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[i]==a[j])
^~
foo.cc:17:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
break;
^~~~~
foo.cc:27:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(b[i]==b[j])
^~
foo.cc:29:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
break;
^~~~~
[Hydro](https://hydro.ac)提供评测服务