Borderou de evaluare (job #1489595)
Utilizator | Data | 21 septembrie 2015 18:17:14 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:40:5: error: expected ‘;’ before ‘int’
int x,y,c;
^
user.cpp:42:29: error: ‘x’ was not declared in this scope
scanf("%d %d %d\n",&x,&y,&c);
^
user.cpp:42:32: error: ‘y’ was not declared in this scope
scanf("%d %d %d\n",&x,&y,&c);
^
user.cpp:42:35: error: ‘c’ was not declared in this scope
scanf("%d %d %d\n",&x,&y,&c);
^
user.cpp:48:13: error: ‘cout’ was not declared in this scope
cout<<"0 ";
^
user.cpp:50:13: error: ‘cout’ was not declared in this scope
cout<<d[i]<<" ";
^
user.cpp:37:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in","r",stdin);
^
user.cpp:38:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.out","w",stdout);
^
user.cpp:40:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int x,y,c;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !