Borderou de evaluare (job #1743201)

Utilizator petrooPetru G petroo Data 17 august 2016 19:05:16
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:20:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%d %d", &x, &n); ^ user.cpp:20:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp: In function ‘long long unsigned int solve(long long int, long long int)’: user.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:18:34: 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:19:36: 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:20:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &x, &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbIncorect0
20ms256kbIncorect0
30ms252kbIncorect0
40ms256kbIncorect0
50ms260kbIncorect0
60ms256kbIncorect0
70ms256kbIncorect0
80ms256kbOK10
90ms252kbIncorect0
100ms260kbIncorect0
Punctaj total10

Ceva nu functioneaza?