can anyone help me why i am getting wa
#include <bits/stdc++.h>
using namespace std;
const int N=1e5+2;
vectoradj[N];
bool visited[100000];
int color[100000];
bool check(int src,int col){
visited[src]=true;
color[src]=col;
for(auto it:adj[src]){
if(visited[it]==0){
bool check1=check(it,col^1);
if(check1==false)
return false;
}
else
{
if(color[it]==color[src])
return false;
}
}
return true;
}
int main(){
OJ;
int t;
cin >> t;
int cnt=1;
while(t--){
int n,m;
cin >> n >> m;
for(int i=1;i<n+1;i++){
visited[i]=false;
color[i]=0;
adj[i].clear();
}
for(int i=0;i<m;i++){
int x,y;
cin >> x >> y;
adj[x].push_back(y);
adj[y].push_back(x);
}
bool ans=true;
for(int i=1;i<n+1;i++){
if(visited[i]==false){
bool check1=check(i,0);
if(check1==false){
ans=false;
break;
}
}
}
cout<<"Scenario #"<<cnt<<":"<<endl;
if(ans==false){
cout<<"Suspicious bugs found!"<<endl;
}
else{
cout<<"No Suspicious bugs found!"<<endl;
}
cnt++;
}
return 0;
}