Borderou de evaluare (job #2222244)

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

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:55: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:56: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:60: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/ccuVa5hZ.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
10ms860kbOK10
20ms752kbOK10
30ms756kbOK10
40ms792kbOK10
50ms752kbOK10
64ms804kbOK10
720ms916kbOK10
852ms1312kbOK10
972ms1540kbOK10
1080ms1632kbOK10
Punctaj total100

Ceva nu functioneaza?