Borderou de evaluare (job #1960401)

Utilizator vazanIonescu Victor Razvan vazan Data 10 aprilie 2017 13:31:20
Problema Showroom Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘long long int hs(int&)’: user.cpp:40:38: warning: NULL used in arithmetic [-Wpointer-arith] while(s[poz] == ' ' && s[poz] != NULL) ^ user.cpp:42:38: warning: NULL used in arithmetic [-Wpointer-arith] while(s[poz] != ' ' && s[poz] != NULL && s[poz] != '\n'){ ^ user.cpp: In function ‘int main()’: user.cpp:83:12: warning: unused variable ‘cont’ [-Wunused-variable] int n, cont = 0; ^ user.cpp:81: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:82: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:84: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:86:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccXARAoC.o: In function `main': user.cpp:(.text.startup+0x9c): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms464kbOK10
20ms468kbOK10
30ms488kbOK10
40ms504kbOK10
58ms668kbPartial incorect5
620ms828kbPartial incorect5
740ms1116kbPartial incorect5
8116ms2012kbPartial incorect5
956ms464kbOK10
10112ms2020kbOK10
Punctaj total80

Ceva nu functioneaza?