fork download
  1. #include <iostream>
  2. #include <bits\stdc++.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. bool ara[11][11];
  7.  
  8. for(int i = 1 ; i <=10 ; i++){
  9. for(int j = 1; j <= 10 ; j++){
  10. ara[i][j] = 0;
  11. }
  12. }
  13.  
  14. int nodes,edges;
  15.  
  16. scanf("%d",&nodes);
  17. scanf("%d",&edges);
  18.  
  19. for(int i = 1 ; i <= edges ; i++)
  20. {
  21. scanf("%d %d",&a,&b);
  22. ara[a][b]=ara[b][a] = true ;
  23. }
  24.  
  25. if(ara[3][4]== true)
  26. printf("Edge exists between 3 and 4\n");
  27.  
  28. if(ara[4][5]==false)
  29. printf("Edge does not exist\n");
  30.  
  31. return 0;
  32. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:25: fatal error: bits\stdc++.h: No such file or directory
compilation terminated.
stdout
Standard output is empty