Borderou de evaluare (job #2727803)
Utilizator | Data | 22 martie 2021 15:13:20 | |
---|---|---|---|
Problema | Pericol | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int GOOD::main()':
main.cpp:83:5: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'void GOOD::init(int, int&, std::unordered_map<int, int>&, int&)':
main.cpp:108:18: error: 'max_element' is not a member of 'std'
maxim = *std::max_element(v, v + n) + 5;
^~~
main.cpp:113:36: error: 'memset' was not declared in this scope
memset(ciur, 1, sizeof ciur);
^
main.cpp: In function 'int GOOD::main()':
main.cpp:53:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d\n", &n);
^
main.cpp:55:37: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d ", v + i);
^
main.cpp: In function 'int BRUT::main()':
main.cpp:137:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d\n", &n);
^
main.cpp:139:37: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d ", v + i);
^
main.cpp:149:39: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(test, "%d", &verif);
^
main.cpp:156:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !