Problem gymbadges
User beepbeepsheep
Submission Time 2023-03-14 09:10:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gymbadges.cpp: In function ‘int main()’:
gymbadges.cpp:14:14: error: expected primary-expression before ‘if’
14 | #define cerr if (0) cerr
| ^~
gymbadges.cpp:43:70: note: in expansion of macro ‘cerr’
43 | if (tot<=arr[i].second) pq.emplace(arr[i].first),tot+=arr[i].first,cerr<<1<<endl;
| ^~~~