Borderou de evaluare (job #2140894)

Utilizator inquisitorAnders inquisitor Data 23 februarie 2018 23:09:53
Problema Sticle Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read(int&)’: user.cpp:11:21: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] while(buffer[i] < 48 | buffer[i] > 57) ^ user.cpp:15:21: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] while(buffer[i] > 47 & buffer[i] < 58) ^ user.cpp:22:12: error: return-statement with a value, in function returning 'void' [-fpermissive] return x; ^ user.cpp: At global scope: user.cpp:7:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void read(int &x) ^ user.cpp: In function ‘void read(int&)’: user.cpp:13:61: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] if(++i == 8192) fread(buffer, 1, 8192, stdin), i = 0; ^ user.cpp:19:61: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] if(++i == 8192) fread(buffer, 1, 8192, stdin), i = 0; ^ user.cpp: In function ‘int main()’: user.cpp:27:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sticle.in", "r", stdin); ^ user.cpp:28:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sticle.out", "w", stdout); ^

Ceva nu functioneaza?