Problem flamethrower
User infraredflames
Submission Time 2026-01-29 21:20:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin>>N>>k;
| ^~~
flamethrower.cpp:4:2: error: ‘vector’ was not declared in this scope
4 | vector<int> arr = {};
| ^~~~~~
flamethrower.cpp:4:9: error: expected primary-expression before ‘int’
4 | vector<int> arr = {};
| ^~~
flamethrower.cpp:8:3: error: ‘arr’ was not declared in this scope
8 | arr.push_back(temp);
| ^~~
flamethrower.cpp:14:12: error: ‘arr’ was not declared in this scope
14 | newmax+=arr[j];
| ^~~
flamethrower.cpp:21:2: error: ‘cout’ was not declared in this scope
21 | cout<<max;
| ^~~~