Problem stepgame
User jwsk0
Submission Time 2025-10-29 20:31:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stepgame.cpp: In function ‘int main()’:
stepgame.cpp:16:21: error: invalid operands of types ‘int’ and ‘int*’ to binary ‘operator-’
16 | minStepR = psum[i]-max_element(psum,psum+i-1);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int int*