Problem papaya
User PlayVoltz
Submission Time 2023-08-23 12:37:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

papaya.cpp: In function ‘void papaya()’:
papaya.cpp:34:18: error: cannot convert ‘std::pair<int, int>’ to ‘int’ in initialization
34 | int temp = maxp(y, x);
| ~~~~^~~~~~
| |
| std::pair<int, int>
papaya.cpp:35:18: error: request for member ‘first’ in ‘temp’, which is of non-class type ‘int’
35 | y = temp.first;
| ^~~~~
papaya.cpp:36:12: error: request for member ‘second’ in ‘temp’, which is of non-class type ‘int’
36 | x = temp.second;
| ^~~~~~