Borderou de evaluare (job #1960494)

Utilizator vazanIonescu Victor Razvan vazan Data 10 aprilie 2017 14:22:45
Problema Showroom Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘long long int hs(int&)’: user.cpp:42:38: warning: NULL used in arithmetic [-Wpointer-arith] while(s[poz] == ' ' && s[poz] != NULL) ^ user.cpp:44: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:117:12: warning: unused variable ‘cont’ [-Wunused-variable] int n, cont = 0; ^ user.cpp:115: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:116: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:118: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:120:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cc7XfNxo.o: In function `main': user.cpp:(.text.startup+0x9f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms464kbOK10
20ms468kbOK10
30ms484kbOK10
40ms500kbOK10
512ms664kbOK10
624ms828kbOK10
744ms1108kbOK10
8136ms2012kbOK10
952ms460kbOK10
10108ms2028kbOK10
Punctaj total100

Ceva nu functioneaza?