Borderou de evaluare (job #2890388)
Utilizator | Data | 15 aprilie 2022 14:19:12 | |
---|---|---|---|
Problema | Loto | 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:26:21: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
26 | if (hashh.count((S - (v[i] + v[j] + v[k]))) {
| ^~~~~
main.cpp:26:60: error: expected ';' before '{' token
26 | if (hashh.count((S - (v[i] + v[j] + v[k]))) {
| ^~
| ;
main.cpp:36:5: error: expected primary-expression before 'if'
36 | if(!sol.empty()){
| ^~
main.cpp:34:18: error: expected ')' before 'if'
34 | }
| ^
| )
35 |
36 | if(!sol.empty()){
| ~~
main.cpp:26:20: note: to match this '('
26 | if (hashh.count((S - (v[i] + v[j] + v[k]))) {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !