Borderou de evaluare (job #2099553)
Utilizator | Data | 4 ianuarie 2018 15:03:27 | |
---|---|---|---|
Problema | Exp | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void get_nr()’:
user.cpp:10:13: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
while(c < 48 | c > 57) c = getchar();
^
user.cpp:12:14: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
while (c > 47 & c < 58)
^
user.cpp: In function ‘int main()’:
user.cpp:29:16: error: void value not ignored as it ought to be
number = get_nr();
^
user.cpp:21:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("exp.in", "r", stdin);
^
user.cpp:22:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("exp.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !