Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include<iostream>
- using namespace std;
- int a[50][50], m, n, k, x[100],d[50];
- void citire()
- {
- int i,x,y;
- ifstream in("graf.in");
- in>>n>>m;
- for(i=1;i<+m;i++)
- {
- in>>x>>y;
- a[x][y]=a[y][x]=1;
- }
- }
- int graf(int x)
- {
- int d==0,j;
- for(j=1;j<+n;j++)
- d=d+a[x][y];
- return d;
- }
- void grade()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement