Problem bananasmoothie
User Craftless
Submission Time 2023-11-11 08:47:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bananasmoothie.cpp:13:9: error: ‘INF’ was not declared in this scope
13 | int l = INF, counter, Q[100010];
| ^~~
bananasmoothie.cpp: In function ‘int32_t main()’:
bananasmoothie.cpp:22:10: error: ‘Q’ was not declared in this scope
22 | cin >> Q[i];
| ^
bananasmoothie.cpp:25:7: error: ‘Q’ was not declared in this scope
25 | sort(Q, Q + N, greater<int>());
| ^
bananasmoothie.cpp:28:3: error: ‘counter’ was not declared in this scope
28 | counter++;
| ^~~~~~~
bananasmoothie.cpp:32:4: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
32 | ans += l;
| ^~~
| abs
bananasmoothie.cpp:33:8: error: ‘INF’ was not declared in this scope
33 | l = INF;
| ^~~
bananasmoothie.cpp:37:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
37 | cout << ans << "\n";
|