include iostream include vector using namespace std class Vertex publi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <iostream>
#include <vector>
using namespace std;
class Vertex{
public:
int index;
int value;
vector <int> incindent = vector <int>();
};
int main(){
int n, m, q0, i, j;
cin >> n;
cin >> m;
cin >> q0;
vector<vector<int> > in=vector<vector<int> >(n);
vector<vector<string> > out=vector<vector<string> >(n);
//vector <char> alphabet = vector <char> (26);
//for(i = 0; i<26; i++)
// alphabet[i] = (char)(97+i);
for(i=0; i<n; i++){
in[i].resize(m);
for(j=0; j<m; j++)
cin >> in[i][j];
}
for(i=0; i<n; i++){
out[i].resize(m);
for(j=0; j<m; j++)
cin >> out[i][j];
}
Vertex **graph = new Vertex* [n];
for(i = 0; i < n; i++){
graph[i] = new Vertex();
graph[i]->value = i;
cout >> graph[i]->value;
}
}