Borderou de evaluare (job #1239162)

Utilizator ArkinyStoica Alex Arkiny Data 8 octombrie 2014 14:19:09
Problema Ridicare la putere in timp logaritmic Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(file,"%d%d",&n,&p); ^ user.cpp:10:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:21:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(file,"%d",nr); ^ user.cpp:10:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(file,"%d%d",&n,&p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit376kbTime limit exceeded.0
2Depăşit384kbTime limit exceeded.0
328ms412kbIncorect0
436ms412kbIncorect0
50ms412kbIncorect0
6Depăşit380kbTime limit exceeded.0
70ms416kbIncorect0
80ms420kbOK10
9Depăşit416kbTime limit exceeded.0
10Depăşit376kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?