Problem funnyballs
User 7Janish7
Submission Time 2026-01-05 16:29:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

funnyballs.cpp: In function ‘int main()’:
funnyballs.cpp:11:14: error: ‘K’ was not declared in this scope
11 | cin >> N >> K;
| ^
funnyballs.cpp:30:7: error: ‘b’ was not declared in this scope
30 | sort(b.begin(), b.end(), greater<int>());
| ^