Problem hackingscores
User JcYong
Submission Time 2024-06-21 15:22:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hackingscores.cpp: In function ‘int main()’:
hackingscores.cpp:10:2: error: expected initializer before ‘int’
10 | int diff = 0;
| ^~~
hackingscores.cpp:14:3: error: ‘scores’ was not declared in this scope
14 | scores.push(S)
| ^~~~~~
hackingscores.cpp:17:3: error: ‘diff’ was not declared in this scope
17 | diff = scores[N-1] - scores[N];
| ^~~~
hackingscores.cpp:17:10: error: ‘scores’ was not declared in this scope
17 | diff = scores[N-1] - scores[N];
| ^~~~~~
hackingscores.cpp:23:5: error: ‘scores’ was not declared in this scope
23 | if(scores[N] >= scores[G]){
| ^~~~~~
hackingscores.cpp:24:32: error: expected ‘;’ before ‘}’ token
24 | cout << "Gold medal is mine!"
| ^
| ;
25 | }
| ~
hackingscores.cpp:27:33: error: expect