/in/foo.cc: In function 'int mian()':
/in/foo.cc:11:19: error: too few arguments to function 'int putchar(int)'
}while((c=putchar())! ='\n');
^
In file included from /usr/include/stdio.h:935:0,
from /usr/include/c++/6/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
from /in/foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:79:1: note: declared here
putchar (int __c)
^~~~~~~
/in/foo.cc:11:21: error: expected ')' before '!' token
}while((c=putchar())! ='\n');
^
/in/foo.cc:11:21: error: expected ';' before '!' token
/in/foo.cc:11:23: error: expected primary-expression before '=' token
}while((c=putchar())! ='\n');
^
/in/foo.cc:13:20: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[300]' [-Wformat=]
scanf("%s",&b[a[j]]);
^
/in/foo.cc:18:10: error: too few arguments to function 'int putchar(int)'
putchar();
^
In file included from /usr/include/stdio.h:935:0,
from /usr/include/c++/6/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
from /in/foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:79:1: note: declared here
putchar (int __c)
^~~~~~~