Borderou de evaluare (job #3158628)
Utilizator | Data | 19 octombrie 2023 13:20:20 | |
---|---|---|---|
Problema | Padure | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void AlgorelJourney::findMinDiamonds(const Forest&)':
main.cpp:58:61: error: passing 'const Forest' as 'this' argument discards qualifiers [-fpermissive]
58 | int newTreeType = forest.getTreeType(newRow, newCol);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
main.cpp:22:9: note: in call to 'int Forest::getTreeType(int, int)'
22 | int getTreeType(int row, int col) {
| ^~~~~~~~~~~
main.cpp:59:62: error: passing 'const Forest' as 'this' argument discards qualifiers [-fpermissive]
59 | if (newTreeType != forest.getTreeType(current.first, current.second)) {
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:22:9: note: in call to 'int Forest::getTreeType(int, int)'
22 | int getTreeType(int row, int col) {
| ^~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:74:17: error: variable 'std::ifstream fin' has initializer but incomplete type
74 | ifstream fin("padure.in");
| ^
main.cpp:75:18: error: variable 'std::ofstream fout' has initializer but incomplete type
75 | ofstream fout("padure.out");
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !