Borderou de evaluare (job #1759529)

Utilizator cristina_borzaCristina Borza cristina_borza Data 19 septembrie 2016 14:19:01
Problema Infinite Pattern Matching Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 56

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:20: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100]’ [-Wformat=] scanf("%s" , &B); ^ user.cpp: In function ‘void trans(long long int*, long long int)’: user.cpp:169:27: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset (a , 0 , sizeof(a)); ^ user.cpp: In function ‘int main()’: user.cpp:21:56: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("infinitepatternmatching.in" , "r" , stdin); ^ user.cpp:23:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s" , &B); ^ user.cpp: In function ‘void verif2(long long int, long long int)’: user.cpp:147:31: warning: ‘dif’ may be used uninitialized in this function [-Wmaybe-uninitialized] ans = min (ans , calc(nr) + dif - n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms404kbOK4
20ms412kbOK4
30ms416kbIncorect0
40ms412kbIncorect0
50ms416kbOK4
60ms416kbOK4
70ms420kbOK4
80ms420kbOK4
90ms420kbOK4
10Depăşit384kbTime limit exceeded.0
110ms416kbOK4
120ms384kbKilled by signal 11(SIGSEGV).0
130ms412kbOK4
140ms412kbOK4
150ms416kbOK4
160ms412kbOK4
170ms412kbOK4
180ms388kbKilled by signal 11(SIGSEGV).0
190ms416kbOK4
200ms388kbKilled by signal 11(SIGSEGV).0
21Depăşit388kbTime limit exceeded.0
22Depăşit392kbTime limit exceeded.0
230ms384kbKilled by signal 11(SIGSEGV).0
24Depăşit388kbTime limit exceeded.0
250ms388kbKilled by signal 11(SIGSEGV).0
Punctaj total56

Ceva nu functioneaza?