Problem collectmushrooms6
User RandomCtfNoob
Submission Time 2025-01-27 15:43:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int main()’:
collectmushrooms6.cpp:15:5: error: expected ‘,’ or ‘;’ before ‘mush’
15 | mush.push_back(cord);
| ^~~~
collectmushrooms6.cpp:16:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | }else if (in == "S") {
| ^~~
collectmushrooms6.cpp:18:5: error: expected ‘,’ or ‘;’ before ‘sprink’
18 | sprink.push_back(cord);
| ^~~~~~
collectmushrooms6.cpp:23:21: error: request for member ‘first’ in ‘sprink.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’}
23 | int x = sprink[i].first;
| ^~~~~
collectmushrooms6.cpp:24:21: error: request for member ‘second’ in ‘sprink.std::vector<int>::operator[](((std::vector<int>::size_type)i))’, which