Borderou de evaluare (job #3180572)
Utilizator | Data | 5 decembrie 2023 16:28:00 | |
---|---|---|---|
Problema | Apm2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In constructor 'Muchie::Muchie(int, int, int)':
main.cpp:14:20: warning: 'Muchie::cost' will be initialized after [-Wreorder]
14 | int sursa,dest,cost;
| ^~~~
main.cpp:14:9: warning: 'int Muchie::sursa' [-Wreorder]
14 | int sursa,dest,cost;
| ^~~~~
main.cpp:16:5: warning: when initialized here [-Wreorder]
16 | Muchie(int c, int s, int d) : cost(c),sursa(s),dest(d){};
| ^~~~~~
main.cpp: In copy constructor 'Muchie::Muchie(const Muchie&)':
main.cpp:14:20: warning: 'Muchie::cost' will be initialized after [-Wreorder]
14 | int sursa,dest,cost;
| ^~~~
main.cpp:14:9: warning: 'int Muchie::sursa' [-Wreorder]
14 | int sursa,dest,cost;
| ^~~~~
main.cpp:18:5: warning: when initialized here [-Wreorder]
18 | Muchie(const Muchie &ob): cost(ob.cost), sursa(ob.sursa), dest(ob.dest){};
| ^~~~~~
main.cpp: In member function 'void Solutii::apm2()':
main.cpp:479:10: error: expected primary-expression before '/' token
479 | */
| ^
main.cpp:480:5: error: expected primary-expression before '}' token
480 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !