Problem justright
User brat
Submission Time 2025-10-11 22:46:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

justright.cpp: In function ‘int main()’:
justright.cpp:13:2: error: expected initializer before ‘for’
13 | for (int i=1; i<n+1; i++) {
| ^~~
justright.cpp:13:16: error: ‘i’ was not declared in this scope
13 | for (int i=1; i<n+1; i++) {
| ^
justright.cpp:17:21: error: ‘psum’ was not declared in this scope
17 | if (k==1) {cout << psum[n]; return 0;}
| ^~~~
justright.cpp:22:17: error: ‘psum’ was not declared in this scope
22 | col[count] = psum[i] - psum[j];
| ^~~~