Borderou de evaluare (job #1853148)

Utilizator antanaAntonia Boca antana Data 21 ianuarie 2017 14:37:31
Problema Showroom Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 75

Raport evaluator

Compilare: user.cpp: In function ‘void getCars(int)’: user.cpp:64:17: warning: NULL used in arithmetic [-Wpointer-arith] while(*p != NULL) ^ user.cpp:66:34: warning: NULL used in arithmetic [-Wpointer-arith] while(*p == ' ' && *p != NULL) ++p; ^ user.cpp: In function ‘int main()’: user.cpp:104: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:105: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:108: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:116:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cctZOYIF.o: In function `main': user.cpp:(.text.startup+0xbe): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
112ms8108kbOK10
212ms8104kbOK10
312ms8120kbPartial incorect5
412ms8132kbOK10
512ms8232kbPartial incorect5
616ms8332kbPartial incorect5
724ms8512kbPartial incorect5
844ms9064kbPartial incorect5
920ms8104kbOK10
1044ms8868kbOK10
Punctaj total75

Ceva nu functioneaza?