Borderou de evaluare (job #1774278)

Utilizator OlivianOlivian Dan Cretu Olivian Data 8 octombrie 2016 19:23:29
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:33:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d",m); ^ user.cpp:36:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d %d ",a,&b); ^ user.cpp:25:13: warning: unused variable ‘j’ [-Wunused-variable] int h,i,j,k,a,b,m; ^ user.cpp:25:15: warning: unused variable ‘k’ [-Wunused-variable] int h,i,j,k,a,b,m; ^ user.cpp:26:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cautbin.in","r",stdin); ^ user.cpp:27:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cautbin.out","w",stdout); ^ user.cpp:28:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&n); ^ user.cpp:31:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&v[i]); ^ user.cpp:33:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",m); ^ user.cpp:36:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ",a,&b); ^ user.cpp:33:18: warning: ‘m’ is used uninitialized in this function [-Wuninitialized] scanf("%d",m); ^ user.cpp:36:29: warning: ‘a’ may be used uninitialized in this function [-Wmaybe-uninitialized] scanf("%d %d ",a,&b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms236kbKilled by signal 11(SIGSEGV).00
20ms240kbKilled by signal 11(SIGSEGV).00
30ms244kbKilled by signal 11(SIGSEGV).00
40ms244kbKilled by signal 11(SIGSEGV).00
50ms276kbKilled by signal 11(SIGSEGV).00
612ms432kbKilled by signal 11(SIGSEGV).0
728ms628kbKilled by signal 11(SIGSEGV).00
828ms628kbKilled by signal 11(SIGSEGV).0
932ms628kbKilled by signal 11(SIGSEGV).0
1032ms628kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?