Borderou de evaluare (job #747058)

Utilizator avatar Vicentiu12345 Savu vicentiu dorian Vicentiu12345 IP ascuns
Problemă Cursa Formula 1 (clasa a 5-a) Compilator c-32
Rundă Concurs 02 | IQ Academy | clasa a 5-a, seara Status evaluat
Dată 24 nov. 2023 10:41:44 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:20:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 20 | fprintf(fout, "%d %d", mmax, r); | ~^ ~~~~ | | | | int long long int | %lld main.c:20:24: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=] 20 | fprintf(fout, "%d %d", mmax, r); | ~^ ~ | | | | int long long int | %lld main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin, "%d%d%d", &n, &x, &y); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:12:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin, "%d%d%d", &a1, &b1, &c1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:906, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:20:5: /usr/include/bits/stdio2.h:79:10: warning: 'r' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:7:15: note: 'r' was declared here 7 | long long r, m, mmax=10000000000000000; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Incorect 0
2 1 ms 249 kb Incorect 0
3 169 ms 249 kb Incorect 0
4 179 ms 245 kb Incorect 0
5 379 ms 249 kb Incorect 0
6 505 ms 249 kb Incorect 0
7 537 ms 249 kb Incorect 0
8 615 ms 245 kb Incorect 0
9 759 ms 249 kb Incorect 0
10 883 ms 114 kb Incorect 0
Punctaj total 0