circuit.cpp: In function 'void dfs(int)':
circuit.cpp:23:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for(int i=0;i<adj[node].size();i++){
| ~^~~~~~~~~~~~~~~~~
circuit.cpp:27:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int i=0;i<adj[node].size();i++){
| ~^~~~~~~~~~~~~~~~~
circuit.cpp:28:39: error: invalid types 'int[int]' for array subscript
28 | all*=(one[adj[node][i]]+zer[adj[node[i]]]);
| ^
circuit.cpp:31:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for(int i=0;i<adj[node].size();i++){
| ~^~~~~~~~~~~~~~~~~
circuit.cpp: In function 'int count_ways(int, int)':
circuit.cpp:40:22: error: declaration of 'std::pair<long long int, long long int> l [((N + M) + 1)]' shadows a parameter
40 | pair<ll int,ll int> l[N+M+1];
| ^
circuit.cpp:37:20: note: 'int l' previously declared here
37 | int count_ways(int l,int r){
| ~~~~^
circuit.cpp:42:13: error: invalid conversion from 'std::pair<long long int, long long int>*' to 'int' [-fpermissive]
42 | for(int i=l-1;i<r;i++){
| ~^~
| |
| std::pair<long long int, long long int>*
circuit.cpp:41:6: warning: unused variable 'visited' [-Wunused-variable]
41 | int visited[N+M+1]={0};
| ^~~~~~~