Problem trivialexam_ex
User mingging1748
Submission Time 2024-08-01 21:40:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trivialexam_ex.cpp: In function ‘int main()’:
trivialexam_ex.cpp:6:2: error: expected ‘,’ or ‘;’ before ‘int’
6 | int testcase;
| ^~~
trivialexam_ex.cpp:7:9: error: ‘testcase’ was not declared in this scope
7 | cin >> testcase;
| ^~~~~~~~
trivialexam_ex.cpp:11:10: error: ‘passage’ was not declared in this scope
11 | cin >> passage[i];
| ^~~~~~~
trivialexam_ex.cpp:14:18: error: ‘passage’ was not declared in this scope
14 | cout << answer[passage[j]] << "\n";
| ^~~~~~~