Borderou de evaluare (job #1322170)

Utilizator atatomirTatomir Alex atatomir Data 19 ianuarie 2015 20:22:02
Problema Kthvalue Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In member function ‘bool Buffer::isDigit(char)’: user.cpp:37:22: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] return c >= '0' & c <= '9'; ^ user.cpp: In function ‘long int getNext(long int)’: user.cpp:106:23: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] return v^((v^(v-1)&v)); ^ user.cpp: In function ‘int main()’: user.cpp:168:39: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] Buffer cin("kthvalue.in",1024*1024); ^ user.cpp:169:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kthvalue.out","w",stdout); ^ user.cpp: In constructor ‘Buffer::Buffer(char*, long int)’: user.cpp:17:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(fileName,"r",stdin); ^ user.cpp: In member function ‘void Buffer::reFill()’: user.cpp:40:43: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(&Buff[0],1,maxBuf,stdin); pos = 0; ^ user.cpp: In function ‘long int kth(long int, long int, long int)’: user.cpp:151:34: warning: ‘withOne’ may be used uninitialized in this function [-Wmaybe-uninitialized] long withZero = onIntr - withOne; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
112ms8972kbIncorect00
2Depăşit10640kbTime limit exceeded.0
3Depăşit17156kbTime limit exceeded.0
4Depăşit25064kbTime limit exceeded.0
5Depăşit40916kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?