Problem safety
User TheInvadr
Submission Time 2024-12-28 23:47:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

safety.cpp: In function ‘int main()’:
safety.cpp:31:5: error: ‘minval’ was not declared in this scope; did you mean ‘minv’?
31 | minval += abs(leftborderval - x);
| ^~~~~~
| minv
safety.cpp:38:5: error: ‘minval’ was not declared in this scope; did you mean ‘minv’?
38 | minval += abs(rightborderval - x);
| ^~~~~~
| minv
safety.cpp:46:9: error: ‘minval’ was not declared in this scope; did you mean ‘minv’?
46 | cout << minval << endl;
| ^~~~~~
| minv