Problem trivialexam_ex_ex
User cjcube
Submission Time 2023-11-21 11:17:01
Score 0

Compile Error

trivialexam_ex_ex.cpp: In function ‘int main()’:
trivialexam_ex_ex.cpp:6:2: error: expected ‘,’ or ‘;’ before ‘int’
6 | int n; cin >> n; cout << answers[n-1];
| ^~~
trivialexam_ex_ex.cpp:6:16: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | int n; cin >> n; cout << answers[n-1];
| ^
| yn