Problem pushups
User Joashhh
Submission Time 2024-12-09 21:42:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pushups.cpp: In function ‘std::vector<int> maxsum(std::vector<int>)’:
pushups.cpp:15:2: error: expected ‘,’ or ‘;’ before ‘vector’
15 | vector<int> max(n);
| ^~~~~~
pushups.cpp:17:2: error: expected ‘,’ or ‘;’ before ‘for’
17 | for(int i=0; i<=n; i++){
| ^~~
pushups.cpp:17:15: error: ‘i’ was not declared in this scope
17 | for(int i=0; i<=n; i++){
| ^
pushups.cpp:23:9: error: cannot resolve overloaded function ‘max’ based on conversion to type ‘std::vector<int>’
23 | return max;
| ^~~