Problem | duckeatant |
---|---|
User | boaznumberd5555 |
Submission Time | 2024-12-07 11:59:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckeatant.cpp: In member function ‘std::pair<int, int> node::eaten(int, int)’:
duckeatant.cpp:36:21: error: expected ‘)’ before ‘amd’
36 | else if(S==s amd E==e){
| ~ ^~~~
| )
duckeatant.cpp:38:126: error: no match for ‘operator+’ (operand types are ‘int’ and ‘std::pair<int, int>’)
38 | if(l->query(S,E) == r->query(S,E)) return {l->eaten(S,m).first+r->eaten(m+1,E).first, S-E+l->eaten(S,m).first+r->eaten(m+1,E)}
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
| | |
| int std::pair&l