Borderou de evaluare (job #1796453)
Utilizator | Data | 3 noiembrie 2016 15:21:48 | |
---|---|---|---|
Problema | Expresii algebrice | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void solve()’:
user.cpp:190:32: warning: statement has no effect [-Wunused-value]
ok == false;
^
user.cpp:195:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(ok = true)
^
user.cpp: At global scope:
user.cpp:270:16: error: ‘::main’ must return ‘int’
long long main()
^
user.cpp: In function ‘void citire()’:
user.cpp:256:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld\n", &m);
^
user.cpp:260:35: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(expresie, 60, stdin);
^
user.cpp: In function ‘int main()’:
user.cpp:272:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("expresii.in", "r", stdin);
^
user.cpp:273:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("expresii.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !