foo.cc:38:2: error: expected initializer before 'cin'
38 | cin>>n>>m;
| ^~~
foo.cc:39:2: error: expected unqualified-id before 'for'
39 | for(int i=1; i<=n; i++)
| ^~~
foo.cc:39:15: error: 'i' does not name a type
39 | for(int i=1; i<=n; i++)
| ^
foo.cc:39:21: error: 'i' does not name a type
39 | for(int i=1; i<=n; i++)
| ^
foo.cc:40:16: error: 'j' does not name a type
40 | for(int j=1; j<=m; j++)
| ^
foo.cc:40:22: error: 'j' does not name a type
40 | for(int j=1; j<=m; j++)
| ^
foo.cc:42:2: error: expected unqualified-id before 'for'
42 | for(int i=1; i<=n; i++)
| ^~~
foo.cc:42:15: error: 'i' does not name a type
42 | for(int i=1; i<=n; i++)
| ^
foo.cc:42:21: error: 'i' does not name a type
42 | for(int i=1; i<=n; i++)
| ^
foo.cc:43:16: error: 'j' does not name a type
43 | for(int j=1; j<=m; j++)
| ^
foo.cc:43:22: error: 'j' does not name a type
43 | for(int j=1; j<=m; j++)
| ^
foo.cc:58:2: error: 'cout' does not name a type
58 | cout<<ans1<<endl<<ans2<<endl;
| ^~~~
foo.cc:59:2: error: expected unqualified-id before 'return'
59 | return 0;
| ^~~~~~
foo.cc:60:1: error: expected declaration before '}' token
60 | }
| ^
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务