Borderou de evaluare (job #1759528)

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

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
10ms428kbOK4
20ms432kbOK4
30ms432kbIncorect0
40ms432kbIncorect0
50ms428kbOK4
60ms436kbOK4
70ms436kbOK4
8Depăşit400kbTime limit exceeded.0
9Depăşit400kbTime limit exceeded.0
10Depăşit400kbTime limit exceeded.0
110ms436kbOK4
12Depăşit400kbTime limit exceeded.0
130ms432kbIncorect0
14Depăşit400kbTime limit exceeded.0
15Depăşit396kbTime limit exceeded.0
160ms428kbOK4
170ms428kbOK4
18Depăşit400kbTime limit exceeded.0
19Depăşit404kbTime limit exceeded.0
20Depăşit400kbTime limit exceeded.0
21Depăşit400kbTime limit exceeded.0
22Depăşit400kbTime limit exceeded.0
23Depăşit400kbTime limit exceeded.0
24Depăşit396kbTime limit exceeded.0
25Depăşit400kbTime limit exceeded.0
Punctaj total32

Ceva nu functioneaza?