Problem | fraud |
---|---|
User | snorky |
Submission Time | 2025-03-16 12:32:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fraud.cpp: In function ‘int main()’:
fraud.cpp:55:25: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long double>’
55 | cout << (checkValid(greater,smaller) ? "YES" : "NO") << endl;
| ^~~~~~~
fraud.cpp:5:30: note: in passing argument 1 of ‘bool checkValid(std::vector<int>&, std::vector<int>&)’
5 | bool checkValid(vector<int>& greater, vector<int>& smaller) {
| ~~~~~~~~~~~~~^~~~~~~