Borderou de evaluare (job #3245651)
Utilizator | Data | 29 septembrie 2024 20:48:16 | |
---|---|---|---|
Problema | Indep | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int generateSubsequences(std::vector<int>&)':
main.cpp:25:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for (int k = 1; k < subsequence.size(); ++k)
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:47:34: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'std::vector<long long int>'
47 | cout << generateSubsequences(arr);
| ^~~
main.cpp:4:45: note: in passing argument 1 of 'long long int generateSubsequences(std::vector<int>&)'
4 | long long generateSubsequences(vector<int> &arr)
| ~~~~~~~~~~~~~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !