Borderou de evaluare (job #2665273)
Utilizator | Data | 30 octombrie 2020 14:50:36 | |
---|---|---|---|
Problema | Sate | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:1: error: 'ifstream' does not name a type
ifstream in("sate.in");
^~~~~~~~
main.cpp:10:1: error: 'ofstream' does not name a type
ofstream out("sate.out");
^~~~~~~~
main.cpp:17:30: error: expected ',' or '...' before 'int'
void addEdge(int i,int j int d);
^~~
main.cpp:21:6: error: prototype for 'void Graf::addEdge(int, int, int)' does not match any in class 'Graf'
void Graf::addEdge(int i, int j, int d){
^~~~
main.cpp:17:10: error: candidate is: void Graf::addEdge(int, int)
void addEdge(int i,int j int d);
^~~~~~~
main.cpp: In member function 'void Graf::Solve(int, int)':
main.cpp:31:5: error: 'queue' was not declared in this scope
queue<int> coada;
^~~~~
main.cpp:31:5: note: suggested alternative:
In file included from /usr/include/c++/6/queue:64:0,
from main.cpp:4:
/usr/include/c++/6/bits/stl_queue.h:96:11: note: 'std::queue'
class queue
^~~~~
main.cpp:31:11: error: expected primary-expression before 'int'
queue<int> coada;
^~~
main.cpp:32:5: error: 'coada' was not declared in this scope
coada.push(x);
^~~~~
main.cpp:49:21: error: 'out' was not declared in this scope
out << dist[y] << "\n";
^~~
main.cpp: In function 'int main()':
main.cpp:60:5: error: 'in' was not declared in this scope
in >> n >> m >> x >> y;
^~
main.cpp:66:27: error: no matching function for call to 'Graf::addEdge(int&, int&, int&)'
graf.addEdge(i,j,d);
^
main.cpp:17:10: note: candidate: void Graf::addEdge(int, int)
void addEdge(int i,int j int d);
^~~~~~~
main.cpp:17:10: note: candidate expects 2 arguments, 3 provided
main.cpp:71:5: error: 'out' was not declared in this scope
out.close();
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !