Borderou de evaluare (job #1943706)

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

Raport evaluator

Compilare: user.cpp: In function ‘long long int hs(int&)’: user.cpp:45:38: warning: NULL used in arithmetic [-Wpointer-arith] while(s[poz] == ' ' && s[poz] != NULL) ^ user.cpp:47: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:88:12: warning: unused variable ‘cont’ [-Wunused-variable] int n, cont = 0; ^ user.cpp:86: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:87: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:89: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:92:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cckSZ9Vd.o: In function `main': user.cpp:(.text.startup+0xb5): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms464kbPartial incorect5
20ms472kbPartial incorect5
30ms492kbPartial incorect5
40ms504kbPartial incorect5
58ms656kbPartial incorect5
620ms828kbPartial incorect5
732ms1108kbPartial incorect5
8108ms2012kbPartial incorect5
956ms464kbPartial incorect5
10108ms2028kbPartial incorect5
Punctaj total50

Ceva nu functioneaza?