SHARE
TWEET

Untitled

a guest Feb 21st, 2020 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #include <fstream>
  3. using namespace std;
  4. ifstream fin("dfs.in");
  5. ofstream fout("dfs.out");
  6.  
  7. int a[101][101], n, m, x, v[101]
  8. void citire()
  9. {
  10.     int i,j;
  11.     fin>>n>>m>>x;
  12.     for(int k=1; k<=n; k++)
  13.     {
  14.         fin>>i>>j;
  15.         a[i][j]=a[j][i]=1
  16.        
  17.     }
  18.    
  19. }
  20. void dfs(int i)
  21. {
  22.    
  23. }
  24. int main()
  25. {
  26.     citire();
  27.     dfs(x);
  28.     fin.close();
  29.     fout.close();
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top