Problem | onlineexam |
---|---|
User | simonfalke |
Submission Time | 2023-04-01 18:46:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
onlineexam.cpp: In lambda function:
onlineexam.cpp:20:9: error: use of ‘search’ before deduction of ‘auto’
20 | search(l, mid);
| ^~~~~~
onlineexam.cpp:22:9: error: use of ‘search’ before deduction of ‘auto’
22 | search(mid, r);
| ^~~~~~
onlineexam.cpp: In function ‘std::string exam(int)’:
onlineexam.cpp:27:24: error: no match for call to ‘(exam(int)::<lambda(int, int)>) (int, int&, exam(int)::<lambda(int, int)>&)’
27 | search(0, N, search);
| ^
onlineexam.cpp:8:19: note: candidate: ‘exam(int)::<lambda(int, int)>’
8 | auto search = [&](int l, int r) {
| ^
onlineexam.cpp:8:19: note: candidate expects 2 arguments, 3 provided