Borderou de evaluare (job #1177139)

Utilizator Politehnica_Florescu_Niculaescu_NeculaCIDNK Bucuresti Politehnica_Florescu_Niculaescu_NeculaC Data 26 aprilie 2014 11:48:56
Problema Subsiruri 3 Status done
Runda ONIS 2014, Runda 4 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] fscanf(f_in, "%d", t); ^ user.cpp:25:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] fscanf(f_in, "%d %d", n, k); ^ user.cpp:25:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int’ [-Wformat=] user.cpp:28:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] fscanf(f_in, "%d", numbers[i]); ^ user.cpp:35:9: warning: unused variable ‘nr_sol’ [-Wunused-variable] bool nr_sol = 1; ^ user.cpp:19:23: warning: ‘t’ is used uninitialized in this function [-Wuninitialized] fscanf(f_in, "%d", t); ^ user.cpp:26:27: warning: ‘n’ may be used uninitialized in this function [-Wmaybe-uninitialized] int *numbers = new int[n]; ^ user.cpp:25:30: warning: ‘k’ may be used uninitialized in this function [-Wmaybe-uninitialized] fscanf(f_in, "%d %d", n, k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms344kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?