Run id: 131773
Main.cc: In function 'int main()':
Main.cc:8:8: error: 'p1' was not declared in this scope
cin>>p1>>P2>>P3;
^
Main.cc:10:5: error: 'p2' was not declared in this scope
a[p2]++;
^
Main.cc:11:5: error: 'p3' was not declared in this scope
a[p3]++;
^
Main.cc:15:16: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i=1;i<=n,i++){
^
Main.cc:15:23: error: expected ';' before ')' token
for(int i=1;i<=n,i++){
^
Main.cc:5:8: warning: unused variable 'P1' [-Wunused-variable]
int n,P1,P2,P3;
^