Borderou de evaluare (job #1846484)
Utilizator | Data | 12 ianuarie 2017 22:37:23 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void citeste()’:
user.cpp:29:5: error: ‘ifstream’ was not declared in this scope
ifstream f1("dijkstra.in");
^
user.cpp:29:5: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:29:14: error: expected ‘;’ before ‘f1’
ifstream f1("dijkstra.in");
^
user.cpp:30:5: error: ‘f1’ was not declared in this scope
f1>>&n>>&m;
^
user.cpp:36:20: error: ‘add’ was not declared in this scope
add(x, y, z);
^
user.cpp: In function ‘int main()’:
user.cpp:140:8: error: ‘ofstream’ was not declared in this scope
ofstream f2("dijkstra.out")
^
user.cpp:140:8: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:140:17: error: expected ‘;’ before ‘f2’
ofstream f2("dijkstra.out")
^
user.cpp:145:9: error: ‘f2’ was not declared in this scope
f2<<d[i]<<" ";
^
user.cpp:146:2: error: ‘f2’ was not declared in this scope
f2.close();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !