Problem closingshop
User Josh28acc2
Submission Time 2024-01-24 23:47:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

closingshop.cpp: In function ‘void topoSort(ll)’:
closingshop.cpp:80:21: error: no match for ‘operator[]’ (operand types are ‘ll [5001]’ {aka ‘long long int [5001]’} and ‘std::pair<long long int, long long int>’)
80 | if (!visited[it] ) topoSort(it.first);
| ^