Borderou de evaluare (job #1451281)

Utilizator GilgodRobert B Gilgod Data 16 iunie 2015 18:16:42
Problema Parantezare optima de matrici Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘void read_data()’: user.cpp:17:16: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &N); ^ user.cpp:19:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &P[i]); ^ user.cpp: In function ‘long long int parantezare_optima()’: user.cpp:42:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("Parantezare optima: %d\n", M[1][N]); ^ user.cpp: In function ‘int main()’: user.cpp:48:55: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fopen(OUT, "w"), "%d\n", parantezare_optima()); ^ user.cpp: In function ‘void read_data()’: user.cpp:16:25: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(IN, "r", stdin); ^ user.cpp:17:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:19:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &P[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms2436kbOK10
20ms2444kbOK10
30ms2500kbOK10
40ms2572kbOK10
54ms2612kbOK10
64ms2804kbOK10
732ms3204kbOK10
8112ms3592kbOK10
9248ms3988kbIncorect0
10500ms4376kbIncorect0
Punctaj total80

Ceva nu functioneaza?