Pagini recente » Borderou de evaluare (job #1605906) | Borderou de evaluare (job #630510) | Borderou de evaluare (job #2079204) | Borderou de evaluare (job #2012866) | Borderou de evaluare (job #2224404)
Borderou de evaluare (job #2224404)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:36:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(nr);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:36:16: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(nr);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:36:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(nr);
^
user.cpp:42:38: warning: ‘K’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ans += dp[N - i][K][0];
~~~~~~~~~~~~~~^
/tmp/ccoZqMKY.o: In function `main':
user.cpp:(.text.startup+0x24b): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 356ms | 15172kb | Incorect | 0 |
Punctaj total | 0 |