Borderou de evaluare (job #1759530)

Utilizator cristina_borzaCristina Borza cristina_borza Data 19 septembrie 2016 14:22:09
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 (*)[1000]’ [-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
10ms420kbOK4
20ms436kbOK4
30ms432kbIncorect0
40ms432kbIncorect0
50ms440kbOK4
60ms444kbOK4
70ms444kbOK4
80ms444kbOK4
90ms440kbOK4
100ms404kbKilled by signal 11(SIGSEGV).0
110ms448kbOK4
120ms412kbKilled by signal 11(SIGSEGV).0
130ms440kbOK4
140ms440kbOK4
150ms440kbOK4
160ms448kbOK4
170ms448kbOK4
18Depăşit412kbTime limit exceeded.0
190ms440kbOK4
200ms404kbKilled by signal 11(SIGSEGV).0
21Depăşit408kbTime limit exceeded.0
220ms412kbKilled by signal 11(SIGSEGV).0
230ms412kbKilled by signal 11(SIGSEGV).0
24Depăşit408kbTime limit exceeded.0
25Depăşit408kbTime limit exceeded.0
Punctaj total56

Ceva nu functioneaza?