Pagini recente » Borderou de evaluare (job #1958264) | Borderou de evaluare (job #3271445) | Borderou de evaluare (job #67402) | Borderou de evaluare (job #1933096) | Borderou de evaluare (job #2219768)
Borderou de evaluare (job #2219768)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:30:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(sir);
^~~~
In file included from user.cpp:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:30:17: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(sir);
^
In file included from user.cpp:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:44:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(frum==k) nrsol++; nrsol%=mod;
^~
user.cpp:44:30: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
if(frum==k) nrsol++; nrsol%=mod;
^~~~~
user.cpp:22:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("frumusete.in","r",stdin);
^
user.cpp:23:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("frumusete.out","w",stdout);
^
user.cpp:26:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:29:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &k);
^
user.cpp:30:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sir);
^
/tmp/ccwyp3jK.o: In function `main':
user.cpp:(.text.startup+0x98): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 724ms | 8004kb | OK | 100 |
Punctaj total | 100 |