Borderou de evaluare (job #2139439)

Utilizator stelian2000Stelian Chichirim stelian2000 Data 22 februarie 2018 15:51:18
Problema Senat Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int cupleaza(int)’: user.cpp:15:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<v[nod].size();i++) ^ user.cpp: In function ‘int main()’: user.cpp:33:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(sir+1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:33:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(sir+1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:33:19: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(sir+1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:29:13: warning: unused variable ‘x’ [-Wunused-variable] int n,m,x; ^ user.cpp:27:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("senat.in","r",stdin); ^ user.cpp:28:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("senat.out","w",stdout); ^ user.cpp:30:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n",&n,&m); ^ user.cpp:33:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(sir+1); ^ /tmp/ccPyQwhT.o: In function `main': user.cpp:(.text.startup+0x86): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms884kbS-a respectat legea!10
20ms936kbS-a respectat legea!10
30ms884kbS-a respectat legea!10
40ms896kbS-a respectat legea!10
50ms912kbS-a respectat legea!10
60ms912kbS-a respectat legea!10
70ms924kbS-a respectat legea!10
80ms920kbS-a respectat legea!10
90ms888kbS-a respectat legea!10
100ms908kbS-a respectat legea!10
Punctaj total100

Ceva nu functioneaza?