Borderou de evaluare (job #1449687)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 10 iunie 2015 11:45:58
Problema Sobo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sobo.in","r",stdin); ^ user.cpp:20:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sobo.out","w",stdout); ^ user.cpp:22:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &biti); ^ user.cpp:26:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(A); ^ user.cpp:33:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &cost[i]); ^ /tmp/cce3OmQm.o: In function `main': user.cpp:(.text.startup+0x90): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms536kbCool!10
20ms532kbCool!10
30ms532kbCool!10
44ms536kbCool!10
58ms536kbCool!10
636ms536kbCool!10
768ms540kbCool!10
8104ms536kbCool!10
9220ms536kbCool!10
10212ms540kbCool!10
Punctaj total100

Ceva nu functioneaza?