Borderou de evaluare (job #1261243)

Utilizator tavi.belu1994FMI Belu Andrei Octavian tavi.belu1994 Data 12 noiembrie 2014 02:43:23
Problema Int Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul II Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:69:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d",&N); ^ user.cpp:73:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d%d",&A[i][0],&A[i][1]); ^ user.cpp:73:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:100:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d",k); ^ user.cpp:76:10: warning: unused variable ‘j’ [-Wunused-variable] long k=1,j; ^ user.cpp:69:18: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&N); ^ user.cpp:73:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&A[i][0],&A[i][1]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbOK10
20ms444kbOK10
30ms464kbOK10
440ms948kbOK10
536ms916kbOK10
60ms460kbOK10
720ms760kbOK10
832ms996kbOK10
936ms964kbOK10
1036ms892kbOK10
Punctaj total100

Ceva nu functioneaza?