foo.cc:6:5: error: expected initializer before 'cin'
6 | cin >> a >> b;
| ^~~
foo.cc:7:5: error: expected unqualified-id before 'if'
7 | if (a==1) {
| ^~
foo.cc:12:5: error: expected unqualified-id before 'for'
12 | for (int i=1; i<=b; i++) {
| ^~~
foo.cc:12:19: error: 'i' does not name a type
12 | for (int i=1; i<=b; i++) {
| ^
foo.cc:12:25: error: 'i' does not name a type
12 | for (int i=1; i<=b; i++) {
| ^
foo.cc:19:5: error: 'cout' does not name a type
19 | cout << mul << endl;
| ^~~~
foo.cc:20:5: error: expected unqualified-id before 'return'
20 | return 0;
| ^~~~~~
foo.cc:21:1: error: expected declaration before '}' token
21 | }
| ^