Problem averyclassicsubsegmentproblem
User pasit
Submission Time 2026-06-25 01:28:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

averyclassicsubsegmentproblem.cpp: In function ‘int main()’:
averyclassicsubsegmentproblem.cpp:11:16: error: ‘v’ was not declared in this scope
11 | cin >> v[i];
| ^
averyclassicsubsegmentproblem.cpp:31:20: error: ‘v’ was not declared in this scope
31 | cur += v[j];
| ^
averyclassicsubsegmentproblem.cpp:41:22: error: expected ‘)’ before numeric constant
41 | if (ok && cur 0) {
| ~ ^~
| )