Borderou de evaluare (job #1605127)

Utilizator Lore_ApostolLorena Apostol Lore_Apostol Data 18 februarie 2016 19:42:20
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:25:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d", &N, &P); ^ user.cpp:25:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:27:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d", putere(N,P)); ^ user.cpp:22:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lgput.in","r", stdin); ^ user.cpp:23:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lgput.out","w", stdout); ^ user.cpp:25:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &N, &P); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms424kbIncorect0
20ms432kbIncorect0
30ms428kbIncorect0
40ms424kbIncorect0
50ms428kbIncorect0
60ms428kbIncorect0
70ms432kbIncorect0
80ms424kbOK10
90ms428kbIncorect0
100ms428kbIncorect0
Punctaj total10

Ceva nu functioneaza?