Borderou de evaluare (job #3224360)
Utilizator | Data | 15 aprilie 2024 11:18:21 | |
---|---|---|---|
Problema | Culegere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void muta_snake()':
main.cpp:92:9: error: 'exit' was not declared in this scope
92 | exit(0);
| ^~~~
main.cpp:7:1: note: 'exit' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'?
6 | #include <vector>
+++ |+#include <cstdlib>
7 | #define fi first
main.cpp: In function 'int main()':
main.cpp:104:18: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=]
104 | fscanf(fin,"%d %d %d %d",&n,&m,&k,&e);
| ~^ ~~
| | |
| int* short int*
| %hd
main.cpp:104:21: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'short int*' [-Wformat=]
104 | fscanf(fin,"%d %d %d %d",&n,&m,&k,&e);
| ~^ ~~
| | |
| int* short int*
| %hd
main.cpp:104:24: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'short int*' [-Wformat=]
104 | fscanf(fin,"%d %d %d %d",&n,&m,&k,&e);
| ~^ ~~
| | |
| int* short int*
| %hd
main.cpp:135:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<corp_sarpe>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
135 | for(i=0; i<sarchilii.size(); i++)
| ~^~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !