Borderou de evaluare (job #1480716)
Utilizator | Data | 3 septembrie 2015 05:54:25 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:0: warning: "INFINITY" redefined [enabled by default]
#define INFINITY (1 << 30)
^
In file included from /usr/include/math.h:40:0,
from /usr/include/c++/4.8/cmath:44,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/inf.h:27:0: note: this is the location of the previous definition
# define INFINITY (__builtin_inff())
^
user.cpp: In function ‘void dijkstra(int*, int, int)’:
user.cpp:39:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < gr[node].size(); ++i){
^
user.cpp: In function ‘int main()’:
user.cpp:56:17: error: variable ‘std::ifstream fin’ has initializer but incomplete type
ifstream fin("dijkstra.in");
^
user.cpp:57:18: error: variable ‘std::ofstream fout’ has initializer but incomplete type
ofstream fout("dijkstra.out");
^
user.cpp:55:24: warning: unused variable ‘minn’ [-Wunused-variable]
int n, m, a, b, c, minn, res = 0;
^
user.cpp:55:30: warning: unused variable ‘res’ [-Wunused-variable]
int n, m, a, b, c, minn, res = 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !