Problem runway
User Potato3218
Submission Time 2023-12-04 13:54:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

runway.cpp: In function ‘bool is_possible(long long int)’:
runway.cpp:14:39: error: ‘it’ was not declared in this scope; did you mean ‘i’?
14 | modified_adjlist[i][j] = {it.first, (it.second > x)};
| ^~
| i
runway.cpp:14:64: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} and ‘<brace-enclosed initializer list>’)
14 | modified_adjlist[i][j] = {it.first, (it.second > x)};
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1