mag.cpp: In function 'int main()':
mag.cpp:7:10: error: 'n' was not declared in this scope; did you mean 'yn'?
7 | cin>>n;
| ^
| yn
mag.cpp:10:9: error: 'adj' was not declared in this scope
10 | adj[a].push_back(b);
| ^~~
mag.cpp:15:14: error: 'ma' was not declared in this scope; did you mean 'mi'?
15 | cin>>ma[i+1];
| ^~
| mi
mag.cpp:18:5: error: 'calc' was not declared in this scope
18 | calc(1,0);
| ^~~~
mag.cpp:19:5: error: 'dfs' was not declared in this scope; did you mean 'ffs'?
19 | dfs(1,0);
| ^~~
| ffs
mag.cpp:21:26: error: 'maa' was not declared in this scope
21 | else cout<<2<<"/"<<2*maa+1<<endl;
| ^~~