Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. include<iostream>
  2. using namespace std;
  3. int a[50][50], m, n, k, x[100],d[50];
  4. void citire()
  5. {
  6. int i,x,y;
  7. ifstream in("graf.in");
  8. in>>n>>m;
  9. for(i=1;i<+m;i++)
  10. {
  11. in>>x>>y;
  12. a[x][y]=a[y][x]=1;
  13. }
  14. }
  15. int graf(int x)
  16. {
  17. int d==0,j;
  18. for(j=1;j<+n;j++)
  19. d=d+a[x][y];
  20. return d;
  21. }
  22. void grade()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement