Borderou de evaluare (job #1478577)
Utilizator | Data | 28 august 2015 23:59:54 | |
---|---|---|---|
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:25: error: ‘memset’ was not declared in this scope
memset(costs, -1, 50005);
^
user.cpp:32:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (graph.size() < source + 1 || graph.size() < dest + 1) graph.push_back(vector<Edge*>());
^
user.cpp:32:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (graph.size() < source + 1 || graph.size() < dest + 1) graph.push_back(vector<Edge*>());
^
user.cpp:23:36: 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:24:38: 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:27:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:31:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &source, &dest, &cost);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !