Problem catlunch
User cobnet
Submission Time 2025-03-11 20:02:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:8:31: error: conversion from ‘int’ to non-scalar type ‘std::priority_queue<long long int>’ requested
8 | priority_queue<long long> nv=0;
| ^
catlunch.cpp:10:29: error: expected ‘)’ before ‘{’ token
10 | if(kyew[c] >= (0+nv.top()){t+=kyew[c];nv.pop();}
| ~ ^
| )
catlunch.cpp:12:2: error: expected primary-expression before ‘}’ token
12 | }
| ^