Borderou de evaluare (job #2654116)

Utilizator AlexNicuNicu Alexandru AlexNicu Data 29 septembrie 2020 20:35:03
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:17:22: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long long int *' [-Wformat=] fscanf( fin, "%d%d%d%d", &n, &v[0], &v[1], &v[2] ); ^ main.c:17:24: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'long long int *' [-Wformat=] fscanf( fin, "%d%d%d%d", &n, &v[0], &v[1], &v[2] ); ^ main.c:17:26: warning: format '%d' expects argument of type 'int *', but argument 6 has type 'long long int *' [-Wformat=] fscanf( fin, "%d%d%d%d", &n, &v[0], &v[1], &v[2] ); ^ main.c:23:22: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] fscanf( fin, "%d", &v[i] ); ^ main.c:15:18: warning: unused variable 'c' [-Wunused-variable] int n, a, b, c, pozmax1, i; ^ main.c:15:15: warning: unused variable 'b' [-Wunused-variable] int n, a, b, c, pozmax1, i; ^ main.c:15:12: warning: unused variable 'a' [-Wunused-variable] int n, a, b, c, pozmax1, i; ^ main.c:17: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:23: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?