Problem sniper
User guru1396
Submission Time 2024-12-04 15:39:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sniper.cpp: In function ‘int main()’:
sniper.cpp:23:32: error: invalid types ‘int[int]’ for array subscript
23 | int max_value = total_adv[0];
| ^
sniper.cpp:26:18: error: invalid types ‘int[int]’ for array subscript
26 | if (total_adv[i] > max_value){
| ^
sniper.cpp:27:27: error: invalid types ‘int[int]’ for array subscript
27 | max_value = total_adv[i];
| ^
sniper.cpp:32:1: error: expected ‘}’ at end of input
32 | }
| ^
sniper.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^