Pagini recente » Borderou de evaluare (job #303528) | Borderou de evaluare (job #883881) | Borderou de evaluare (job #2873393) | Borderou de evaluare (job #2780576) | Borderou de evaluare (job #2219747)
Borderou de evaluare (job #2219747)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:29: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:29: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:41:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(frumc==k) nrsol++; nrsol%=mod;
^~
user.cpp:41:31: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
if(frumc==k) nrsol++; nrsol%=mod;
^~~~~
user.cpp:21: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:22: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:25:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:28:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
user.cpp:29:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sir);
^
user.cpp:41:9: warning: ‘frumc’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(frumc==k) nrsol++; nrsol%=mod;
^~
/tmp/cc9TpVKD.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 | 736ms | 7996kb | Incorect | 0 |
Punctaj total | 0 |