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

Compile Error

collectmushrooms6.cpp: In function ‘int main()’:
collectmushrooms6.cpp:14:34: error: expected primary-expression before ‘cord’
14 | mush.push_back(pair<int,int> cord(i,j));
| ^~~~
collectmushrooms6.cpp:15:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
15 | }else if (in == "S") {
| ^~~
collectmushrooms6.cpp:16:36: error: expected primary-expression before ‘cord’
16 | sprink.push_back(pair<int,int> cord(i,j));
| ^~~~
collectmushrooms6.cpp:21: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’}
21 | int x = sprink[i].first;
| ^~~~~
collectmushrooms6.cpp:22:21: error