Borderou de evaluare (job #1761024)
Utilizator | Data | 21 septembrie 2016 18:19:30 | |
---|---|---|---|
Problema | Parcare | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:263:36: error: expected ‘,’ or ‘...’ before ‘or’ token
char getDirectionChar(Orientation or, Direction dir)
^
user.cpp: In member function ‘std::string ParkingLot::encodeMove(Car, int, Direction)’:
user.cpp:259:47: error: no matching function for call to ‘ParkingLot::getDirectionChar(Orientation&, Direction&)’
result.push_back(getDirectionChar(c.Dir, dir));
^
user.cpp:259:47: note: candidate is:
user.cpp:263:7: note: char ParkingLot::getDirectionChar(Orientation)
char getDirectionChar(Orientation or, Direction dir)
^
user.cpp:263:7: note: candidate expects 1 argument, 2 provided
user.cpp: In member function ‘char ParkingLot::getDirectionChar(Orientation)’:
user.cpp:265:7: error: expected primary-expression before ‘or’ token
if (or == Vertical)
^
user.cpp:265:10: error: expected primary-expression before ‘==’ token
if (or == Vertical)
^
user.cpp:267:8: error: ‘dir’ was not declared in this scope
if (dir == Forward)
^
user.cpp:278:8: error: ‘dir’ was not declared in this scope
if (dir == Forward)
^
user.cpp: In member function ‘bool ParkingLot::canMove(Car, int, Direction)’:
user.cpp:156:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !