Problem | spellofweakness |
---|---|
User | penguinzzz |
Submission Time | 2024-03-29 20:21:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
spellofweakness.cpp:6:14: error: array bound is not an integer constant before ‘]’ token
6 | int enemies[n];
| ^
spellofweakness.cpp: In function ‘bool isPossible(long long int)’:
spellofweakness.cpp:9:28: error: ‘enemies’ was not declared in this scope
9 | int total = accumulate(enemies, enemies + mid, 0LL);
| ^~~~~~~
spellofweakness.cpp: In function ‘int32_t main()’:
spellofweakness.cpp:20:40: error: ‘enemies’ was not declared in this scope
20 | for (int i = 0; i < n; ++i) cin >> enemies[i];
| ^~~~~~~
spellofweakness.cpp:21:10: error: ‘enemies’ was not declared in this scope
21 | sort(enemies, enemies + n);
| ^~~~~~~