Borderou de evaluare (job #2219742)

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

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:42:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if(frumc==k) nrsol++; nrsol%=mod; ^~ user.cpp:42: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:43:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", nrsol); ^ 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:24: 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); ^ user.cpp:42:9: warning: ‘frumc’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(frumc==k) nrsol++; nrsol%=mod; ^~ /tmp/ccT4jg3w.o: In function `main': user.cpp:(.text.startup+0x9a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit11968kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?