Borderou de evaluare (job #2865780)
Utilizator | Data | 9 martie 2022 10:36:16 | |
---|---|---|---|
Problema | Tigri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:20:37: error: expected primary-expression before 'if'
20 | else if(cmd == 'e')fin >> x >> y, if(bal >= x * y and tgr + x >= 0)bal -= x * y, tgr += x;
| ^~
main.cpp:21:37: error: expected primary-expression before 'if'
21 | else if(cmd == 'v')fin >> x >> y, if(x <= tgr and bal + x * y >= 0)bal += x * y, tgr -= x;
| ^~
main.cpp:11:15: warning: unused variable 'tgr' [-Wunused-variable]
11 | int bal = 0, tgr = 0;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !