Borderou de evaluare (job #1817384)

Utilizator specialkhouseTodireanu Constantin Catalin specialkhouse Data 27 noiembrie 2016 18:37:12
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:13:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(in, "%d", &a); ^ user.cpp:14:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(in, "%d", &b); ^ user.cpp:15:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(out, "%d", (a + b)); ^ user.cpp:13:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &a); ^ user.cpp:14:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
70ms260kbOkay!1040
80ms264kbOkay!10
90ms264kbOkay!10
100ms264kbOkay!10
10ms260kbOkay!1030
20ms264kbOkay!10
30ms268kbOkay!10
40ms264kbOkay!1030
50ms260kbOkay!10
60ms272kbOkay!10
Punctaj total100

Ceva nu functioneaza?