Borderou de evaluare (job #1337736)

Utilizator Mr.DoomRaul Ignatus Mr.Doom Data 9 februarie 2015 13:58:25
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:1: error: ‘ifstream’ does not name a type ifstream is("bellmanford.in"); ^ user.cpp:7:1: error: ‘ofstream’ does not name a type ofstream os("bellmanford.out"); ^ user.cpp:11:1: error: ‘vector’ does not name a type vector<vector<pair<int, int> > > G; ^ user.cpp:12:1: error: ‘vector’ does not name a type vector<int> D; ^ user.cpp:13:1: error: ‘queue’ does not name a type queue<pair<int, int> > Q; ^ user.cpp:15:1: error: ‘bitset’ does not name a type bitset<50001> v; ^ user.cpp:19:13: error: expected initializer before ‘-’ token void Bellman-Ford(int x); ^ user.cpp: In function ‘int main()’: user.cpp:26:2: error: ‘Bellman’ was not declared in this scope Bellman-Ford(1); ^ user.cpp:26:16: error: ‘Ford’ was not declared in this scope Bellman-Ford(1); ^ user.cpp:28:3: error: ‘os’ was not declared in this scope os << "Ciclu negativ!"; ^ user.cpp:30:24: error: ‘D’ was not declared in this scope for ( const int& d : D ) ^ user.cpp:31:4: error: ‘os’ was not declared in this scope os << d << ' '; ^ user.cpp:32:2: error: ‘is’ was not declared in this scope is.close(); ^ user.cpp:33:2: error: ‘os’ was not declared in this scope os.close(); ^ user.cpp: At global scope: user.cpp:38:13: error: expected initializer before ‘-’ token void Bellman-Ford(int x) ^

Ceva nu functioneaza?