Borderou de evaluare (job #1320159)

Utilizator obidanDan Ganea obidan Data 17 ianuarie 2015 17:36:14
Problema Secventa 5 Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul I Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘long long int until(int)’: user.cpp:21:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(x<myhashmap.size()) ^ user.cpp: In function ‘int main()’: user.cpp:39:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d %d %d",n,l,u); ^ user.cpp:39:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:39:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int’ [-Wformat=] user.cpp:42:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘unsigned int’ [-Wformat=] scanf("%d",a[i]); ^ user.cpp:37:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv5.in","r",stdin); ^ user.cpp:38:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv5.out","w",stdout); ^ user.cpp:39:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",n,l,u); ^ user.cpp:42:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",a[i]); ^ user.cpp:39:28: warning: ‘l’ is used uninitialized in this function [-Wuninitialized] scanf("%d %d %d",n,l,u); ^ user.cpp:39:28: warning: ‘u’ is used uninitialized in this function [-Wuninitialized]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms408kbKilled by signal 11(SIGSEGV).0
20ms412kbKilled by signal 11(SIGSEGV).0
30ms412kbKilled by signal 11(SIGSEGV).0
40ms412kbKilled by signal 11(SIGSEGV).0
50ms412kbKilled by signal 11(SIGSEGV).0
60ms408kbKilled by signal 11(SIGSEGV).0
70ms416kbKilled by signal 11(SIGSEGV).0
80ms408kbKilled by signal 11(SIGSEGV).0
90ms408kbKilled by signal 11(SIGSEGV).0
100ms408kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?