Problem reinforcement
User thatlycheeoolongdrink
Submission Time 2025-12-01 16:07:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reinforcement.cpp: In function ‘int main()’:
reinforcement.cpp:29:10: error: ‘i’ was not declared in this scope
29 | if (x[i][0]=='<') {
| ^
reinforcement.cpp:36:11: error: ‘s1’ was not declared in this scope; did you mean ‘y1’?
36 | if (max(s1,s3)-r<0) {
| ^~
| y1
reinforcement.cpp:36:14: error: ‘s3’ was not declared in this scope
36 | if (max(s1,s3)-r<0) {
| ^~
reinforcement.cpp:41:18: error: ‘s2’ was not declared in this scope
41 | int v1=(s1-r)%s2,v2=(s3-r)%s4;
| ^~
reinforcement.cpp:42:17: error: ‘v2’ was not declared in this scope; did you mean ‘v1’?
42 | cout<<min(v1,v2);
| ^~
| v1
reinforcement.cpp: At global scope:
reinforcement.cpp:45:1: error: expected declaration before ‘}’ token
45 | }
| ^