Borderou de evaluare (job #1251251)

Utilizator dragos_vecerdeaVecerdea Dragos dragos_vecerdea Data 29 octombrie 2014 09:50:33
Problema Bere Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:22:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘long long int *’ [-Wformat=] fscanf(fin ,"%d%d" ,&n ,&q); ^ user.c:31:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] fscanf(fin , "%d%d" ,&i ,&sum); ^ user.c:31:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘long long int *’ [-Wformat=] user.c:36:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fout ,"%d\n" ,rez); ^ user.c:22:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin ,"%d%d" ,&n ,&q); ^ user.c:25:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin ,"%d" , &v[i]); ^ user.c:31:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin , "%d%d" ,&i ,&sum); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbOK10
20ms280kbOK10
30ms268kbOK10
48ms276kbOK10
58ms272kbOK10
68ms284kbOK10
78ms364kbOK10
812ms428kbOK10
912ms460kbOK10
1016ms484kbOK10
Punctaj total100

Ceva nu functioneaza?