0_0_33598367_1908.cpp:13:13: error: invalid declarator before 'G'
vector<Edge>G[maxn];
^
0_0_33598367_1908.cpp: In function 'void add(int, int, int)':
0_0_33598367_1908.cpp:17:2: error: 'G' was not declared in this scope
G[x].push_back(Edge{y,z});
^
0_0_33598367_1908.cpp: At global scope:
0_0_33598367_1908.cpp:21:7: error: 'maxn' was not declared in this scope
int d[maxn];
^
0_0_33598367_1908.cpp: In function 'void dij(int, int)':
0_0_33598367_1908.cpp:25:28: error: 'd' was not declared in this scope
for(int i = 1;i <= n;i++) d[i] = 0x3f3f3f3f;
^
0_0_33598367_1908.cpp: In function 'int main()':
0_0_33598367_1908.cpp:36:17: error: 'n' was not declared in this scope
scanf("%d%d",&n,&k);
^
0_0_33598367_1908.cpp:36:20: error: 'k' was not declared in this scope
scanf("%d%d",&n,&k);
^
0_0_33598367_1908.cpp:37:7: error: 'i' was not declared in this scope
rep(i,0,n-1)
^
0_0_33598367_1908.cpp:37:14: error: 'rep' was not declared in this scope
rep(i,0,n-1)
^
|