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