Borderou de evaluare (job #1232946)

Utilizator borcanirobertBorcani Robert borcanirobert Data 24 septembrie 2014 12:46:46
Problema Elementul majoritar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf( f, "%d%d", &N, &a ); ^ user.cpp:15:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:20:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf( f, "%d", &a ); ^ user.cpp:30:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf( g, "%d\n", nr ); ^ user.cpp:15:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf( f, "%d%d", &N, &a ); ^ user.cpp:20:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf( f, "%d", &a ); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms228kbIncorect0
20ms228kbIncorect0
30ms232kbIncorect0
40ms232kbIncorect0
512ms232kbIncorect0
628ms228kbIncorect0
748ms228kbIncorect0
8128ms224kbIncorect0
9264ms244kbIncorect0
10276ms228kbIncorect0
Punctaj total0

Ceva nu functioneaza?