Problem | ntuc |
---|---|
User | Secre |
Submission Time | 2025-06-19 10:48:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ntuc.cpp: In function ‘int main()’:
ntuc.cpp:11:4: error: expected unqualified-id before ‘.’ token
11 | int. cheapest_infinite=10001;
| ^
ntuc.cpp:13:26: error: ‘cheapest_infinite’ was not declared in this scope
13 | if(S[i] ==-1 && P[i]<cheapest_infinite){
| ^~~~~~~~~~~~~~~~~
ntuc.cpp:14:5: error: ‘cheapest_unlimited’ was not declared in this scope
14 | cheapest_unlimited = P[i];
| ^~~~~~~~~~~~~~~~~~
ntuc.cpp:20:40: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)’
20 | limited_sellers.push_back(P[i],S[i]);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,