Problem | flamethrower_ex |
---|---|
User | chenweilian |
Submission Time | 2023-11-18 19:44:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower_ex.cpp: In function ‘int32_t main()’:
flamethrower_ex.cpp:20:33: error: ‘__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 ‘struct std::pair<long long int, long long int>’} has no member named ‘fir’; did you mean ‘first’?
20 | x += destroy.back().fir;
| ^~~
| first
flamethrower_ex.cpp:23:38: error: expected ‘)’ before ‘;’ token
23 | destroy.push_back(make_pair(x, i+1);
| ~ ^
| )
flamethrower_ex.cpp:26:37: error: ‘__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 ‘struct std::pair<long long int, long long int>’} has no member n