Borderou de evaluare (job #3349583)
| Utilizator | Data | 31 martie 2026 20:44:04 | |
|---|---|---|---|
| Problema | Secventa 5 | 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:45:24: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<unsigned int>'
45 | fout << Rezolva(U, v) - Rezolva(L - 1, v) << "\n";
| ^
main.cpp:6:53: note: in passing argument 2 of 'long long int Rezolva(size_t, const std::vector<int>&)'
6 | long long Rezolva(size_t t, const std::vector<int> &a)
| ~~~~~~~~~~~~~~~~~~~~~~~~^
main.cpp:45:44: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<unsigned int>'
45 | fout << Rezolva(U, v) - Rezolva(L - 1, v) << "\n";
| ^
main.cpp:6:53: note: in passing argument 2 of 'long long int Rezolva(size_t, const std::vector<int>&)'
6 | long long Rezolva(size_t t, const std::vector<int> &a)
| ~~~~~~~~~~~~~~~~~~~~~~~~^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
