Problem trivialexam
User leyi
Submission Time 2023-03-31 12:27:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trivialexam.cpp:5:25: error: stray ‘\357’ in program
5 | int arr[]={14332, 23143, 12334};
| ^
trivialexam.cpp:5:26: error: stray ‘\274’ in program
5 | int arr[]={14332, 23143, 12334};
| ^
trivialexam.cpp:5:27: error: stray ‘\214’ in program
5 | int arr[]={14332, 23143, 12334};
| ^
trivialexam.cpp: In function ‘int main()’:
trivialexam.cpp:5:29: error: expected ‘}’ before numeric constant
5 | int arr[]={14332, 23143, 12334};
| ~ ^~~~~
trivialexam.cpp:5:29: error: expected ‘,’ or ‘;’ before numeric constant
trivialexam.cpp: At global scope:
trivialexam.cpp:6:9: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | int n; cin>>n;
| ^~~
| sin
trivialexam.cpp:7:2: error: ‘cout’ does not name a type
7 | cout<<arr[n-1];
| ^~~~<