Borderou de evaluare (job #586185)

Utilizator avatar mateilb1234 Matei Balaur mateilb1234 IP ascuns
Problemă Puzzle (baraj gimnaziu) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 15 mar. 2021 14:56:27 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void move(long int)': main.cpp:8:11: warning: unused variable 'aa' [-Wunused-variable] 8 | long a,i,aa; | ^~ main.cpp: In function 'int main()': main.cpp:28:2: error: 'gets' was not declared in this scope; did you mean 'fgets'? 28 | gets(s); | ^~~~ | fgets main.cpp:30:12: warning: comparison of integer expressions of different signedness: 'long int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 30 | for (i=0;i<strlen(s);i++) | ~^~~~~~~~~~ main.cpp:44:12: warning: comparison of integer expressions of different signedness: 'long int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 44 | for (i=0;i<strlen(s);i++) | ~^~~~~~~~~~ main.cpp:26:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 26 | freopen("puzzle.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:27:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 27 | freopen("puzzle.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~