Problem shoop
User Random52
Submission Time 2024-12-02 16:53:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shoop.cpp: In function ‘int main()’:
shoop.cpp:26:27: error: request for member ‘first’ in ‘tc.std::vector<long int>::operator[](((std::vector<long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type’ {aka ‘long int’}
26 | std::cin >> tc[i].first >> tc[i].second;
| ^~~~~
shoop.cpp:26:42: error: request for member ‘second’ in ‘tc.std::vector<long int>::operator[](((std::vector<long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type’ {aka ‘long int’}
26 | std::cin >> tc[i].first >> tc[i].second;
| ^~~~~~
shoop.cpp:34:27: error: ‘c’ was not declared in this scope
34 | if (x - (std::max(c[i] - disc, static_cast<intmax_t>(0))) >= 0) {<