Borderou de evaluare (job #2140893)
Utilizator | Data | 23 februarie 2018 23:09:29 | |
---|---|---|---|
Problema | Sticle | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:43: error: ISO C++ forbids declaration of ‘read’ with no type [-fpermissive]
__attribute__((always_inline)) read(int &x)
^
user.cpp: In function ‘int 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: At global scope:
user.cpp:7:32: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) read(int &x)
^
user.cpp: In function ‘int 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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !