/in/foo.cc:11:13: error: stray '\357' in program
while(j!=0)
^
/in/foo.cc:11:14: error: stray '\274' in program
while(j!=0)
^
/in/foo.cc:11:15: error: stray '\211' in program
while(j!=0)
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:2: error: 'cin' was not declared in this scope
cin>>n>>x;
^~~
/in/foo.cc:6:2: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:75:0,
from /in/foo.cc:1:
/usr/include/c++/6/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^~~
/in/foo.cc:12:6: error: expected ')' before '{' token
{
^
/in/foo.cc:13:7: error: 'ans' was not declared in this scope
ans=j%10;
^~~