Borderou de evaluare (job #1658143)

Utilizator mirupetPetcan Miruna mirupet Data 21 martie 2016 09:58:47
Problema Interesant Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:75:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < w.size(); i++) ^ user.cpp:19:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &p, &N); ^ user.cpp:25:27: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(S[i]); ^ user.cpp:45:27: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(S[i]); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:25:27: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:45:27: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/cc02MJaq.o: In function `main': user.cpp:(.text.startup+0x54): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms1088kbOK.520
20ms1252kbOK.5
30ms416kbOK.5
40ms944kbOK.5
50ms356kbOK.33
632ms1068kbOK.33
70ms316kbOK.33
896ms788kbOK.33
98ms1244kbOK.44
10264ms1240kbOK.44
118ms1128kbOK.44
12228ms1192kbOK.44
13240ms1216kbOK.44
14252ms1244kbOK.55
15156ms1252kbOK.55
16344ms1244kbOK.55
17248ms1236kbOK.55
18312ms1248kbOK.55
19364ms1248kbOK.55
20524ms1252kbOK.66
21520ms1256kbOK.66
22440ms1248kbOK.66
Punctaj total100

Ceva nu functioneaza?