Borderou de evaluare (job #1848056)

Utilizator LucianTLucian Trepteanu LucianT Data 15 ianuarie 2017 14:09:57
Problema Minerale Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int split(int, int)’: user.cpp:20:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<list1.size();i++) ^ user.cpp:21:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<list2.size();j++) ^ user.cpp: In function ‘int main()’: user.cpp:32:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10]’ [-Wformat=] scanf("%s %s\n",&a,&b); ^ user.cpp:32:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[10]’ [-Wformat=] user.cpp:27:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("minerale.in","r",stdin); ^ user.cpp:28:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("minerale.out","w",stdout); ^ user.cpp:29:27: 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:32:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s %s\n",&a,&b); ^ user.cpp:39:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str+1); ^ /tmp/ccbPfLG5.o: In function `main': user.cpp:(.text.startup+0x21d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms436kbOK10
20ms436kbOK10
348ms468kbOK10
4284ms472kbOK10
5748ms468kbOK10
6320ms452kbOK10
7316ms456kbOK10
8Depăşit456kbTime limit exceeded.0
9Depăşit448kbTime limit exceeded.0
10Depăşit456kbTime limit exceeded.0
Punctaj total70

Ceva nu functioneaza?