Problem | hackingscores |
---|---|
User | JcYong |
Submission Time | 2024-06-21 15:22:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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]){
| ^~~~~~