Problem shoop
User chickennn
Submission Time 2026-11-06 14:28:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shoop.cpp: In function ‘int main()’:
shoop.cpp:8:23: error: ‘n’ was not declared in this scope
8 | for (int i = 0; i < n; i++) {
| ^
shoop.cpp:11:17: error: ‘n’ was not declared in this scope
11 | sort(arr, arr+n);
| ^
shoop.cpp:14:5: error: ‘x’ was not declared in this scope
14 | x-= arr[count].second;
| ^