Problem notebook
User kxd
Submission Time 2023-08-15 18:04:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

notebook.cpp: In function ‘int main()’:
notebook.cpp:82:10: error: no match for ‘operator[]’ (operand types are ‘bool [500005]’ and ‘std::pair<int, char>’)
82 | if(vis[i] && (c.ft.length()+1)>dist[i].length()) continue;
| ^
notebook.cpp:82:39: error: no match for ‘operator[]’ (operand types are ‘std::string [500005]’ {aka ‘std::__cxx11::basic_string<char> [500005]’} and ‘std::pair<int, char>’)
82 | if(vis[i] && (c.ft.length()+1)>dist[i].length()) continue;
| ^