Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement