Borderou de evaluare (job #1658633)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 21 martie 2016 18:13:16
Problema Showroom Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:73:37: 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:74:39: 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:76:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d\n", &n, &x, &r, &k); ^ user.cpp:80:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); int m = strlen(s+1); s[m+1] = ' '; ^ user.cpp:93:35: warning: ‘f’ may be used uninitialized in this function [-Wmaybe-uninitialized] else unite(f , ss); ^ /tmp/ccBtv8YZ.o: In function `main': user.cpp:(.text.startup+0xa0): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms480kbOK10
20ms480kbOK10
30ms536kbOK10
40ms576kbOK10
512ms992kbPartial incorect5
624ms1432kbPartial incorect5
748ms2164kbPartial incorect5
8140ms5008kbPartial incorect5
916ms472kbOK10
10140ms5008kbOK10
Punctaj total80

Ceva nu functioneaza?