Problem examinations
User Henries
Submission Time 2024-10-12 20:48:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

examinations.cpp: In function ‘int main()’:
examinations.cpp:10:2: error: expected ‘,’ or ‘;’ before ‘for’
10 | for (int i =0;i<n;i++){
| ^~~
examinations.cpp:10:16: error: ‘i’ was not declared in this scope
10 | for (int i =0;i<n;i++){
| ^
examinations.cpp:16:22: error: ‘prevy’ was not declared in this scope; did you mean ‘prevx’?
16 | long long prevx = 0;prevy=0; prevz=0;
| ^~~~~
| prevx
examinations.cpp:16:31: error: ‘prevz’ was not declared in this scope; did you mean ‘prevx’?
16 | long long prevx = 0;prevy=0; prevz=0;
| ^~~~~
| prevx
examinations.cpp:17:26: error: ‘previnfo’ was not declared in this scope
17 | long long prevmath = 0; previnfo = 0;
| ^~~~~~~~