Borderou de evaluare (job #3031481)
Utilizator | Data | 19 martie 2023 23:35:20 | |
---|---|---|---|
Problema | Tastatură defectă | Status | done |
Runda | arhiva-utcn | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int countOfDefectiveKeys(const std::string&, const std::string&)':
main.cpp:62:39: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<int>::iterator'
62 | return count(isDefective.begin(), isDefective.end(), 1);
| ~~~~~~~~~~~~~~~~~^~
main.cpp:5:35: note: in passing argument 1 of 'int count(const std::vector<int>&, int)'
5 | int count(const std::vector<int>& v, int x) {
| ~~~~~~~~~~~~~~~~~~~~~~~~^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !