Borderou de evaluare (job #1943689)

Utilizator vazanIonescu Victor Razvan vazan Data 28 martie 2017 19:05:36
Problema Showroom Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 55

Raport evaluator

Compilare: user.cpp: In function ‘long long int hs(int&)’: user.cpp:38:38: warning: NULL used in arithmetic [-Wpointer-arith] while(s[poz] == ' ' && s[poz] != NULL) ^ user.cpp:40: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:63:12: warning: unused variable ‘cont’ [-Wunused-variable] int n, cont = 0; ^ user.cpp:61: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:62: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:64: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:66:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccxQIvks.o: In function `main': user.cpp:(.text.startup+0x99): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms448kbPartial incorect5
20ms456kbPartial incorect5
30ms480kbPartial incorect5
40ms496kbPartial incorect5
58ms652kbPartial incorect5
620ms820kbPartial incorect5
732ms1104kbPartial incorect5
8108ms2000kbPartial incorect5
956ms452kbOK10
10108ms2012kbPartial incorect5
Punctaj total55

Ceva nu functioneaza?