/in/foo.cc:127:1: error: 'cin' does not name a type
cin>>X0>>m;
^~~
/in/foo.cc:128:1: error: expected unqualified-id before 'for'
for(int i=1; i<=n; i++) {
^~~
/in/foo.cc:128:14: error: 'i' does not name a type
for(int i=1; i<=n; i++) {
^
/in/foo.cc:128:20: error: 'i' does not name a type
for(int i=1; i<=n; i++) {
^
/in/foo.cc:135:1: error: 'cout' does not name a type
cout<<ans<<endl;
^~~~
/in/foo.cc:136:1: error: expected unqualified-id before 'while'
while(m--) {
^~~~~
/in/foo.cc:141:1: error: expected unqualified-id before 'return'
return 0;
^~~~~~
/in/foo.cc:142:1: error: expected declaration before '}' token
}
^