Problem eatcake
User PlayVoltz
Submission Time 2023-11-07 14:42:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatcake.cpp: In function ‘std::pair<long long int, long long int> minseg(long long int, long long int)’:
eatcake.cpp:14:16: error: ‘maxnum’ was not declared in this scope; did you mean ‘minnum’?
14 | if (vect[i]<=maxnum)minnum=vect[i], index=i;
| ^~~~~~
| minnum