Borderou de evaluare (job #1239169)

Utilizator ArkinyStoica Alex Arkiny Data 8 octombrie 2014 14:27:38
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:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long unsigned int*’ [-Wformat=] fscanf(file,"%d%d",&n,&p); ^ user.cpp:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long unsigned int*’ [-Wformat=] user.cpp:18:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<p;i++) ^ user.cpp:24:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] fprintf(file,"%d",nr%1999999973); ^ user.cpp:12: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ăşit212kbTime limit exceeded.0
2Depăşit220kbTime limit exceeded.0
3Depăşit240kbTime limit exceeded.0
4Depăşit216kbTime limit exceeded.0
50ms236kbIncorect0
6Depăşit216kbTime limit exceeded.0
74ms240kbIncorect0
80ms240kbOK10
9Depăşit216kbTime limit exceeded.0
10Depăşit216kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?