Borderou de evaluare (job #2219747)

Utilizator Laura_CorneiLaura Maria Cornei Laura_Cornei Data 9 iulie 2018 17:10:58
Problema Frumusete Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

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
1736ms7996kbIncorect0
Punctaj total0

Ceva nu functioneaza?