Borderou de evaluare (job #2242706)

Utilizator Ruxandra985Nanu Ruxandra Laura Ruxandra985 Data 19 septembrie 2018 12:47:31
Problema Trilant Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:1: error: ‘vector’ does not name a type vector <pair <int,int> > v[100001]; ^~~~~~ user.cpp: In function ‘void dijkstra(int)’: user.cpp:81:14: error: ‘vector’ was not declared in this scope for (vector <pair <int,int> > :: iterator it=v[nod].begin() ; it!=v[nod].end() ; it++){ ^~~~~~ user.cpp:81:37: error: expected primary-expression before ‘>’ token for (vector <pair <int,int> > :: iterator it=v[nod].begin() ; it!=v[nod].end() ; it++){ ^ user.cpp:81:51: error: missing template arguments before ‘it’ for (vector <pair <int,int> > :: iterator it=v[nod].begin() ; it!=v[nod].end() ; it++){ ^~ user.cpp:81:71: error: ‘it’ was not declared in this scope for (vector <pair <int,int> > :: iterator it=v[nod].begin() ; it!=v[nod].end() ; it++){ ^~ user.cpp:81:75: error: ‘v’ was not declared in this scope for (vector <pair <int,int> > :: iterator it=v[nod].begin() ; it!=v[nod].end() ; it++){ ^ user.cpp: In function ‘int main()’: user.cpp:103:9: error: ‘v’ was not declared in this scope v[x].push_back(make_pair(y,z)); ^ user.cpp:100:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (fin,"%d%d%d%d%d",&n,&m,&a,&b,&c); ^ user.cpp:102:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (fin,"%d%d%d",&x,&y,&z); ^

Ceva nu functioneaza?