Borderou de evaluare (job #1795667)

Utilizator TimitocArdelean Andrei Timotei Timitoc Data 2 noiembrie 2016 19:31:22
Problema Seif Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void prepare(char*, int (*)[30], int)’: user.cpp:14: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(nxt, 0, sizeof nxt); ^ user.cpp: In function ‘int main()’: user.cpp:52:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seif.in", "r", stdin); ^ user.cpp:53:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seif.out", "w", stdout); ^ user.cpp:55:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &t); ^ user.cpp:57:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &k); ^ user.cpp:58:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a+1); n = strlen(a+1); ^ user.cpp:59:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(b+1); m = strlen(b+1); ^ /tmp/ccVXql9H.o: In function `main': user.cpp:(.text.startup+0x84): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit4736kbTime limit exceeded.0
2Depăşit4756kbTime limit exceeded.0
3Depăşit4780kbTime limit exceeded.0
4Depăşit4840kbTime limit exceeded.0
5Depăşit4904kbTime limit exceeded.0
6Depăşit4908kbTime limit exceeded.0
7Depăşit4936kbTime limit exceeded.0
8Depăşit4960kbTime limit exceeded.0
9Depăşit4964kbTime limit exceeded.0
10Depăşit4964kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?