Problem roadsideadverts
User Sandarach151
Submission Time 2023-01-07 12:09:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

roadsideadverts.cpp:4:83: error: declaration of ‘adg’ as array of references
4 | bool dfs(int curr, int prev, int targ, vector<int>& ans, vector<pair<int, int> >& adg[]){
| ^~~
roadsideadverts.cpp: In function ‘bool dfs(...)’:
roadsideadverts.cpp:5:5: error: ‘curr’ was not declared in this scope
5 | if(curr==targ){
| ^~~~
roadsideadverts.cpp:5:11: error: ‘targ’ was not declared in this scope
5 | if(curr==targ){
| ^~~~
roadsideadverts.cpp:9:16: error: ‘adg’ was not declared in this scope
9 | for(auto u : adg[curr]){
| ^~~
roadsideadverts.cpp:10:49: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
10 | if(u.first!=prev && dfs(u.first, curr, targ, ans, adg)==true){
| ^~~
|