Borderou de evaluare (job #586192)

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 15:02:38 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:24:2: error: 'gets' was not declared in this scope; did you mean 'fgets'? 24 | gets(s1); | ^~~~ | fgets main.cpp:33:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 33 | {for(j=1;(a2[j]!=a1[i]||f[j]==1)&&j<=n;++j); | ^~~ main.cpp:34:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 34 | for(j;j>1;--j) | ^~~ main.cpp:34:10: warning: statement has no effect [-Wunused-value] 34 | for(j;j>1;--j) | ^ main.cpp:22:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 22 | freopen("puzzle.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:23:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 23 | freopen("puzzle.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:25:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 25 | scanf("\n"); | ~~~~~^~~~~~