Problem sortingtrainers2
User AlphanumericUsername
Submission Time 2024-07-09 09:08:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sortingtrainers2.cpp: In function ‘int main()’:
sortingtrainers2.cpp:42:77: error: ‘x’ was not declared in this scope
42 | if (s[i-1] == '>') ub[i] = min(ub[i], ub[i-1]-1), lb[i]=lb[i-1]-x;
| ^
sortingtrainers2.cpp:43:63: error: ‘x’ was not declared in this scope
43 | else lb[i] = min(lb[i], ub[i-1]+1), ub[i]=ub[i-1]+x;
| ^