Borderou de evaluare (job #2349782)

Utilizator gabriel2506Dobre Gabriel gabriel2506 Data 20 februarie 2019 18:24:54
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:19:26: error: array bound is not an integer constant before ']' token vector<pair<int,int> >a[N]; ^ main.cpp: In function 'void read()': main.cpp:26:9: error: 'a' was not declared in this scope a[x].push_back(make_pair(y,c)); ^ main.cpp:26:36: error: 'c' was not declared in this scope a[x].push_back(make_pair(y,c)); ^ main.cpp: In function 'int bellmanford()': main.cpp:34:10: error: 'x0' was not declared in this scope dist[x0]=0; ^~ main.cpp:35:5: error: 'inq' was not declared in this scope inq[x0]=true; ^~~ main.cpp:38:11: error: 'p' was not declared in this scope x=p.front(); ^ main.cpp:41:20: error: 'a' was not declared in this scope for(auto p:a[x]) ^ main.cpp:44:13: error: 'c' was not declared in this scope c=p.second; ^ main.cpp:45:16: error: 'd' was not declared in this scope if(d[x]+c<d[y]) ^ main.cpp:54:28: error: 'nr' was not declared in this scope if(nr[q]==n) ^~ main.cpp: In function 'int main()': main.cpp:74:15: error: 'a' was not declared in this scope fout<<a[i]<<" "; ^ main.cpp: In function 'int bellmanford()': main.cpp:65:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Non zero exit status: 1

Ceva nu functioneaza?