Problem ntuc
User thatlycheeoolongdrink
Submission Time 2025-06-19 10:36:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ntuc.cpp: In function ‘int main()’:
ntuc.cpp:43:31: error: request for member ‘first’ in ‘s’, which is of non-class type ‘long long int’
43 | x.push({s.first,s.second-1});
| ^~~~~
ntuc.cpp:43:39: error: request for member ‘second’ in ‘s’, which is of non-class type ‘long long int’
43 | x.push({s.first,s.second-1});
| ^~~~~~
ntuc.cpp:43:48: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
43 | x.push({s.first,s.second-1});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/