Borderou de evaluare (job #2654115)

Utilizator AlexNicuNicu Alexandru AlexNicu Data 29 septembrie 2020 20:33:58
Problema Expresie Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.c: In function 'main': main.c:50:24: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'int' [-Wformat=] fprintf( fout, "%lld", sum + max ( max1 + max2, max3 ) ); ^ main.c:14:18: warning: unused variable 'c' [-Wunused-variable] int n, a, b, c, sum, max1, max2, pozmax1, i; ^ main.c:14:15: warning: unused variable 'b' [-Wunused-variable] int n, a, b, c, sum, max1, max2, pozmax1, i; ^ main.c:14:12: warning: unused variable 'a' [-Wunused-variable] int n, a, b, c, sum, max1, max2, pozmax1, i; ^ main.c:16:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%d%d%d%d", &n, &v[0], &v[1], &v[2] ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:22:7: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%d", &v[i] ); ^~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
22ms131kbOK10
32ms131kbOK10
42ms131kbOK10
52ms131kbOK10
62ms131kbOK10
72ms131kbIncorect0
82ms131kbIncorect0
92ms131kbOK10
102ms131kbOK10
Punctaj total80

Ceva nu functioneaza?