Problem trivialexam
User helloworld
Submission Time 2024-03-18 10:26:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trivialexam.cpp:7:31: error: stray ‘\357’ in program
7 | 3, 4, 3, 2, 2,
| ^
trivialexam.cpp:7:32: error: stray ‘\274’ in program
7 | 3, 4, 3, 2, 2,
| ^
trivialexam.cpp:7:33: error: stray ‘\214’ in program
7 | 3, 4, 3, 2, 2,
| ^
trivialexam.cpp: In function ‘int main()’:
trivialexam.cpp:8:18: error: expected ‘}’ before numeric constant
8 | 1, 1, 1, 1, 1,
| ^
trivialexam.cpp:4:17: note: to match this ‘{’
4 | int a[50] = {1, 4, 3, 3, 2,
| ^
trivialexam.cpp:8:18: error: expected ‘,’ or ‘;’ before numeric constant
8 | 1, 1, 1, 1, 1,
| ^
trivialexam.cpp: At global scope:
trivialexam.cpp:15:5: error: ‘cin’ does not name a type; did you mean ‘sin’?