Problem | problemsetter |
---|---|
User | vinitara |
Submission Time | 2025-03-17 10:32:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
problemsetter.cpp: In function ‘int main()’:
problemsetter.cpp:11:15: error: ‘n’ was not declared in this scope
11 | for(i=0;i<n;i++){
| ^
problemsetter.cpp:13:28: error: expected ‘;’ before ‘}’ token
13 | g.push_back({m, s})
| ^
| ;
14 | }
| ~
problemsetter.cpp:17:14: error: request for member ‘push_back’ in ‘a.std::vector<int>::operator[](((std::vector<int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
17 | a[i].push_back(g[i].first);
| ^~~~~~~~~
problemsetter.cpp:18:14: error: request for member ‘push_back’ in ‘b.std::vector<int>::operator[](((std::vector<int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, i