Problem adjmatrix
User yongteckrice
Submission Time 2023-02-06 14:50:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:28:29: error: could not convert ‘it’ from ‘std::_Rb_tree_iterator<std::pair<const int, std::__cxx11::basic_string<char> > >’ to ‘bool’
28 | for (auto it = mp.begin(); it! = mp.end(); it++)
| ^~
| |
| std::_Rb_tree_iterator<std::pair<const int, std::__cxx11::basic_string<char> > >
adjmatrix.cpp:28:31: error: expected ‘;’ before ‘!’ token
28 | for (auto it = mp.begin(); it! = mp.end(); it++)
| ^
| ;
adjmatrix.cpp:28:33: error: expected primary-expression before ‘=’ token
28 | for (auto it = mp.begin(); it! = mp.end(); it++)
| ^
adjmatrix.cpp:28:43: error: expected ‘)’ before ‘;’ token
28 | for (auto it = mp.begin(); it! = mp.end(); i