/in/foo.cc:48:5: error: expected initializer before 'scanf'
scanf("%d%lld",&T,&Mod);
^~~~~
/in/foo.cc:49:5: error: expected unqualified-id before 'for'
for (int i=1;i<=T;++i)
^~~
/in/foo.cc:49:18: error: 'i' does not name a type
for (int i=1;i<=T;++i)
^
/in/foo.cc:49:23: error: expected unqualified-id before '++' token
for (int i=1;i<=T;++i)
^~
/in/foo.cc:55:8: error: expected constructor, destructor, or type conversion before '(' token
get(maxm);
^
/in/foo.cc:56:11: error: expected constructor, destructor, or type conversion before ';' token
init();
^
/in/foo.cc:57:5: error: expected unqualified-id before 'for'
for (int i=1;i<=T;++i)
^~~
/in/foo.cc:57:18: error: 'i' does not name a type
for (int i=1;i<=T;++i)
^
/in/foo.cc:57:23: error: expected unqualified-id before '++' token
for (int i=1;i<=T;++i)
^~
/in/foo.cc:62:1: error: expected declaration before '}' token
}
^