Problem tickethandling
User shoryu386
Submission Time 2023-12-12 22:44:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tickethandling.cpp: In function ‘int main()’:
tickethandling.cpp:21:19: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::tuple<long long int, long long int, long long int> >, std::tuple<long long int, long long int, long long int> >::value_type’ {aka ‘class std::tuple<long long int, long long int, long long int>’} has no member named ‘first’
21 | if (cringe[y].first == -1){
| ^~~~~
tickethandling.cpp:27:27: error: no match for ‘operator==’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::tuple<long long int, long long int, long long int> >, std::tuple<long long int, long long int, long long int> >::value_type’ {aka ‘std::tuple<long long int, long long int, long long int>’} and ‘int’)
27 | if (get<1>(cringe[y]== 2) && get<1>(cringe[best]) == 1){
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_