Borderou de evaluare (job #1787534)
Utilizator | Tarnu Cristian Huskyez | Data | 24 octombrie 2016 19:38:33 |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:22: error: expected ‘,’ or ‘;’ before ‘:’ token
ofstream out(outfile):
^
user.cpp:23:8: error: ‘edge’ was not declared in this scope
vector<edge> graph[50005];
^
user.cpp:23:12: error: template argument 1 is invalid
vector<edge> graph[50005];
^
user.cpp:23:12: error: template argument 2 is invalid
user.cpp:23:26: error: invalid type in declaration before ‘;’ token
vector<edge> graph[50005];
^
user.cpp: In function ‘bool BFS(int)’:
user.cpp:34:20: error: ‘edge’ was not declared in this scope
for(vector<edge> :: iterator it=graph[nod].begin(); it!=graph[nod].end(); it++){
^
user.cpp:34:24: error: template argument 1 is invalid
for(vector<edge> :: iterator it=graph[nod].begin(); it!=graph[nod].end(); it++){
^
user.cpp:34:24: error: template argument 2 is invalid
user.cpp:34:38: error: invalid type in declaration before ‘it’
for(vector<edge> :: iterator it=graph[nod].begin(); it!=graph[nod].end(); it++){
^
user.cpp:34:38: error: expected ‘;’ before ‘it’
user.cpp:34:38: error: ‘it’ was not declared in this scope
user.cpp:34:52: error: request for member ‘begin’ in ‘graph[nod]’, which is of non-class type ‘int’
for(vector<edge> :: iterator it=graph[nod].begin(); it!=graph[nod].end(); it++){
^
user.cpp:34:76: error: request for member ‘end’ in ‘graph[nod]’, which is of non-class type ‘int’
for(vector<edge> :: iterator it=graph[nod].begin(); it!=graph[nod].end(); it++){
^
user.cpp:34:81: error: expected ‘)’ before ‘;’ token
for(vector<edge> :: iterator it=graph[nod].begin(); it!=graph[nod].end(); it++){
^
user.cpp:34:29: warning: unused variable ‘iterator’ [-Wunused-variable]
for(vector<edge> :: iterator it=graph[nod].begin(); it!=graph[nod].end(); it++){
^
user.cpp:34:83: error: ‘it’ was not declared in this scope
for(vector<edge> :: iterator it=graph[nod].begin(); it!=graph[nod].end(); it++){
^
user.cpp:34:87: error: expected ‘;’ before ‘)’ token
for(vector<edge> :: iterator it=graph[nod].begin(); it!=graph[nod].end(); it++){
^
user.cpp:68:1: error: expected ‘}’ at end of input
}
^
user.cpp:68:1: error: expected ‘}’ at end of input
user.cpp:68:1: warning: no return statement in function returning non-void [-Wreturn-type]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !