Borderou de evaluare (job #1882844)
Utilizator | Data | 17 februarie 2017 15:42:47 | |
---|---|---|---|
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:25:7: error: overloaded function with no contextual type information
min = inf;
^
user.cpp:27:16: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>’
if(min > d[i] && viz[i] == 0 ){
^
user.cpp:28:9: error: overloaded function with no contextual type information
min = d[i];
^
user.cpp:7:13: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator!=’
#define inf 2000000000
^
user.cpp:31:14: note: in expansion of macro ‘inf’
if( min != inf){
^
user.cpp:33:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < A[k].size(); i++)
^
user.cpp:13:15: warning: unused variable ‘j’ [-Wunused-variable]
int n, m, i, j, x,y,c, k, ok = 1;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !