Problem buffet
User benchew23
Submission Time 2023-01-27 17:09:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

buffet.cpp: In function ‘int main()’:
buffet.cpp:8:17: error: expected initializer before ‘ans’
8 | unsigned ll ans=0;
| ^~~
buffet.cpp:22:17: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
22 | ans += a;
| ^~~
| abs
buffet.cpp:25:17: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
25 | ans += b;
| ^~~
| abs
buffet.cpp:28:17: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
28 | ans += b;
| ^~~
| abs
buffet.cpp:32:17: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
32 | ans += b-k;
| ^~~
| abs
buffet.cpp:34:17: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
34