foo.cc:6:5: error: expected initializer before 'int'
6 | int a, b;
| ^~~
foo.cc:7:5: error: 'cin' does not name a type; did you mean 'sin'?
7 | cin >> a >> b;
| ^~~
| sin
foo.cc:8:5: error: expected unqualified-id before 'for'
8 | for (int i = a; i <= b; i++)
| ^~~
foo.cc:8:21: error: 'i' does not name a type
8 | for (int i = a; i <= b; i++)
| ^
foo.cc:8:29: error: 'i' does not name a type
8 | for (int i = a; i <= b; i++)
| ^
foo.cc:18:5: error: expected unqualified-id before 'for'
18 | for (int i = 1; i <= 9; i++)
| ^~~
foo.cc:18:21: error: 'i' does not name a type; did you mean 'id'?
18 | for (int i = 1; i <= 9; i++)
| ^
| id
foo.cc:18:29: error: 'i' does not name a type; did you mean 'id'?
18 | for (int i = 1; i <= 9; i++)
| ^
| id
foo.cc:21:5: error: 'cout' does not name a type
21 | cout << id;
| ^~~~
foo.cc:22:5: error: expected unqualified-id before 'return'
22 | return 0;
| ^~~~~~
foo.cc:23:1: error: expected declaration before '}' token
23 | }
| ^
[Hydro](https://hydro.ac)提供评测服务