Borderou de evaluare (job #2222208)

Utilizator mateicosCostescu Matei mateicos Data 16 iulie 2018 18:02:45
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In member function ‘void huge::Read()’: user.cpp:14:7: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a + 1); ^~~~ In file included from /usr/include/c++/6/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp:14:17: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a + 1); ^ In file included from /usr/include/c++/6/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp: In member function ‘void huge::operator+=(const huge&)’: user.cpp:39:11: warning: operation on ‘i’ may be undefined [-Wsequence-point] a[++i] = a[i] + b.a[i] + tr - (i <= l) * '0' - (i <= b.l) * '0'; ^~~ user.cpp:39:11: warning: operation on ‘i’ may be undefined [-Wsequence-point] user.cpp:39:11: warning: operation on ‘i’ may be undefined [-Wsequence-point] user.cpp:39:11: warning: operation on ‘i’ may be undefined [-Wsequence-point] user.cpp: In function ‘int main()’: user.cpp:54:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.in", "r", stdin); ^ user.cpp:55:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.out", "w", stdout); ^ user.cpp:59:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &k); ^ user.cpp: In member function ‘void huge::Read()’: user.cpp:14:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a + 1); ^ /tmp/ccfZGGN6.o: In function `main': user.cpp:(.text.startup+0x59): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms796kbOK10
20ms796kbIncorect0
30ms860kbIncorect0
40ms936kbIncorect0
50ms804kbOK10
64ms796kbOK10
720ms920kbOK10
852ms1312kbOK10
972ms1540kbOK10
1080ms1628kbIncorect0
Punctaj total60

Ceva nu functioneaza?