Borderou de evaluare (job #1759531)

Utilizator cristina_borzaCristina Borza cristina_borza Data 19 septembrie 2016 14:29:30
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:25: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(int*, long long int)’: user.cpp:172: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:23: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:25: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(int, int)’: user.cpp:150: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
10ms424kbOK4
20ms444kbOK4
30ms444kbIncorect0
40ms440kbIncorect0
50ms448kbOK4
60ms448kbOK4
70ms448kbOK4
80ms452kbOK4
90ms444kbOK4
10Depăşit408kbTime limit exceeded.0
110ms444kbOK4
12Depăşit404kbTime limit exceeded.0
130ms444kbOK4
140ms448kbOK4
150ms444kbOK4
160ms448kbOK4
170ms452kbOK4
18Depăşit404kbTime limit exceeded.0
190ms444kbOK4
20Depăşit408kbTime limit exceeded.0
21Depăşit408kbTime limit exceeded.0
22Depăşit404kbTime limit exceeded.0
23Depăşit400kbTime limit exceeded.0
24Depăşit400kbTime limit exceeded.0
25Depăşit408kbTime limit exceeded.0
Punctaj total56

Ceva nu functioneaza?