Borderou de evaluare (job #2202893)
Utilizator | Data | 10 mai 2018 12:38:28 | |
---|---|---|---|
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 read()’:
user.cpp:22:23: error: ‘n’ was not declared in this scope
fscanf(f,"%d %d",&n,&m);
^
user.cpp:22:26: error: ‘m’ was not declared in this scope
fscanf(f,"%d %d",&n,&m);
^
user.cpp:25:30: error: ‘x’ was not declared in this scope
fscanf(f,"%d %d %d",&x,&y,&c);
^
user.cpp:25:33: error: ‘y’ was not declared in this scope
fscanf(f,"%d %d %d",&x,&y,&c);
^
user.cpp:25:36: error: ‘c’ was not declared in this scope
fscanf(f,"%d %d %d",&x,&y,&c);
^
user.cpp: In function ‘void dijkstra()’:
user.cpp:31:20: error: ‘n’ was not declared in this scope
for(int i=1;i<=n;i++)
^
user.cpp:33:5: error: ‘q’ was not declared in this scope
q.push({1,0});
^
user.cpp:36:9: error: ‘nod’ was not declared in this scope
nod=q.top().first;
^~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !