Borderou de evaluare (job #1853524)

Utilizator antanaAntonia Boca antana Data 21 ianuarie 2017 20:47:33
Problema Showroom Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘void getCars(int)’: user.cpp:81:17: warning: NULL used in arithmetic [-Wpointer-arith] while(*p != NULL) ^ user.cpp:83:34: warning: NULL used in arithmetic [-Wpointer-arith] while(*p == ' ' && *p != NULL) ++p; ^ user.cpp: In function ‘int main()’: user.cpp:133:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("showroom.in", "r", stdin); ^ user.cpp:134:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("showroom.out", "w", stdout); ^ user.cpp:139:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d\n", &n, &A, &R, &K); ^ user.cpp:148:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccwTjq3S.o: In function `main': user.cpp:(.text.startup+0xc7): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms8176kbOK10
28ms8172kbOK10
38ms8192kbPartial incorect5
412ms8196kbOK10
512ms8272kbPartial incorect5
616ms8348kbPartial incorect5
720ms8496kbPartial incorect5
840ms8932kbOK10
920ms8164kbOK10
1040ms8944kbOK10
Punctaj total80

Ceva nu functioneaza?