Problem xmas
User Leeyee
Submission Time 2026-02-27 16:20:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int main()’:
xmas.cpp:13:15: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in initialization
13 | int b = find(v.begin(), v.end(), i);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
xmas.cpp:14:10: error: ‘a’ was not declared in this scope
14 | cout<< a+1;
| ^