Borderou de evaluare (job #1444798)
Utilizator | Data | 30 mai 2015 10:00:30 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
user.cpp: In function ‘int main()’:
user.cpp:44:10: error: ‘INT_MAX’ was not declared in this scope
d[i] = INT_MAX;
^
user.cpp:48:16: error: ‘INT_MAX’ was not declared in this scope
while (min != INT_MAX)
^
user.cpp:76:15: error: ‘INT_MAX’ was not declared in this scope
if (d[i] == INT_MAX)
^
user.cpp:32:42: warning: unused variable ‘j’ [-Wunused-variable]
int N, E, d[50001], i, a, b, c, min, k, j, fare, cost;
^
user.cpp:32:45: warning: unused variable ‘fare’ [-Wunused-variable]
int N, E, d[50001], i, a, b, c, min, k, j, fare, cost;
^
user.cpp:32:51: warning: unused variable ‘cost’ [-Wunused-variable]
int N, E, d[50001], i, a, b, c, min, k, j, fare, cost;
^
user.cpp:35:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d %d", &N, &E);
^
user.cpp:38:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d %d %d", &a, &b, &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !