Borderou de evaluare (job #1451017)

Utilizator GilgodRobert B Gilgod Data 15 iunie 2015 19:18:42
Problema Ridicare la putere in timp logaritmic Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void read_data()’: user.cpp:11:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fopen(IN, "r"), "%d %d", &N, &P); ^ user.cpp:11:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp: In function ‘int main()’: user.cpp:28:37: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fopen(OUT, "w"), "%ld\n", r); ^ user.cpp: In function ‘void read_data()’: user.cpp:11:41: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fopen(IN, "r"), "%d %d", &N, &P); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms432kbOK10
20ms432kbOK10
30ms436kbOK10
40ms436kbOK10
50ms440kbOK10
60ms440kbOK10
70ms436kbOK10
80ms436kbOK10
90ms436kbOK10
100ms436kbOK10
Punctaj total100

Ceva nu functioneaza?