Borderou de evaluare (job #2682734)
Utilizator | Data | 9 decembrie 2020 14:11:55 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:43: error: ISO C++ forbids declaration of 'Parcurgere' with no type [-fpermissive]
Parcurgere(int n, int s, deque<int> node[]) {
^
main.cpp: In function 'int Parcurgere(int, int, std::deque<int>*)':
main.cpp:15:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < node[sorted[start]].size(); i++) { // Parcurgem toate elementele care ajung in cel actual
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:30:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("bfs.in", "r", stdin);
^
main.cpp:31:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("bfs.out", "w", stdout);
^
main.cpp:33:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &m, &s);
^
main.cpp:38:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &x, &y);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !