foo.cc:35:2: error: expected initializer before 'std'
35 | std::ios::sync_with_stdio(0);
| ^~~
foo.cc:36:7: error: 'cin' in namespace 'std' does not name a type
36 | std::cin.tie(0);
| ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from foo.cc:1:
/usr/include/c++/9/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
foo.cc:37:7: error: 'cout' in namespace 'std' does not name a type
37 | std::cout.tie(0);
| ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from foo.cc:1:
/usr/include/c++/9/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
foo.cc:38:2: error: 'cin' does not name a type; did you mean 'sin'?
38 | cin>>n>>m;
| ^~~
| sin
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)提供评测服务