/in/foo.cc: In function 'int main()':
/in/foo.cc:7:21: warning: too many arguments for format [-Wformat-extra-args]
scanf("%d",&n,&m);
^
/in/foo.cc:9:22: error: expected ')' before ';' token
{scanf("%d",&p[i];w[p[i]]++;)
^
/in/foo.cc:9:33: error: expected primary-expression before ')' token
{scanf("%d",&p[i];w[p[i]]++;)
^
/in/foo.cc:10:14: warning: statement has no effect [-Wunused-value]
for(i=1;i<=n/9;i++)
~^~~~~
/in/foo.cc:10:23: error: expected ';' before ')' token
for(i=1;i<=n/9;i++)
^
/in/foo.cc:33:1: error: expected '}' at end of input
}
^
/in/foo.cc:33:1: error: expected '}' at end of input