Borderou de evaluare (job #605530)

Utilizator avatar vlad_miscoci Miscoci Vlad Andrei vlad_miscoci IP ascuns
Problemă Cursa Formula 1 2 (clasa a 7-a) Compilator c-32
Rundă Concurs cursuri de performanță | IQ Academy | clasa a 7-a Status evaluat
Dată 5 sept. 2021 16:46:36 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:15:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 15 | while(ch != '\n'); | ^~~~~ main.c:16:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 16 | { | ^ main.c:19:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 19 | if(ch >='a' && ch <= 'z' || ch >= 'A' && ch <= 'Z' || ch == ' ') | ~~~~~~~~~^~~~~~~~~~~~ main.c:20:23: warning: passing argument 1 of 'fputc' makes integer from pointer without a cast [-Wint-conversion] 20 | fputc(fin, ch); | ^~~ | | | FILE * In file included from main.c:1: /usr/include/stdio.h:525:23: note: expected 'int' but argument is of type 'FILE *' 525 | extern int fputc (int __c, FILE *__stream); | ~~~~^~~ main.c:20:28: warning: passing argument 2 of 'fputc' makes pointer from integer without a cast [-Wint-conversion] 20 | fputc(fin, ch); | ^~ | | | char In file included from main.c:1: /usr/include/stdio.h:525:34: note: expected 'FILE *' but argument is of type 'char' 525 | extern int fputc (int __c, FILE *__stream); | ~~~~~~^~~~~~~~ main.c:6:17: warning: variable 'fout' set but not used [-Wunused-but-set-variable] 6 | FILE *fin, *fout; | ^~~~ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin, "%d%d%d%d%d", &cer, &y, &x, &n, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:15:14: warning: 'ch' may be used uninitialized in this function [-Wmaybe-uninitialized] 15 | while(ch != '\n'); | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb Killed by Signal 11 0
2 1 ms 131 kb Killed by Signal 11 0
3 1 ms 131 kb Killed by Signal 11 0
4 1 ms 131 kb Killed by Signal 11 0
5 1 ms 131 kb Killed by Signal 11 0
6 1 ms 131 kb Killed by Signal 11 0
7 1 ms 131 kb Killed by Signal 11 0
8 1 ms 131 kb Killed by Signal 11 0
9 1 ms 131 kb Killed by Signal 11 0
10 1 ms 131 kb Killed by Signal 11 0
11 1 ms 131 kb Killed by Signal 11 0
12 1 ms 131 kb Killed by Signal 11 0
13 2 ms 262 kb Killed by Signal 11 0
14 1 ms 131 kb Killed by Signal 11 0
15 1 ms 131 kb Killed by Signal 11 0
16 1 ms 131 kb Killed by Signal 11 0
17 1 ms 131 kb Killed by Signal 11 0
18 1 ms 131 kb Killed by Signal 11 0
19 1 ms 131 kb Killed by Signal 11 0
20 1 ms 131 kb Killed by Signal 11 0
Punctaj total 0