xylophone.cpp: In function 'void thu(int)':
xylophone.cpp:24:9: error: declaration of 'int d' shadows a parameter
24 | int d = *min_element(a+1, a+n+1);
| ^
xylophone.cpp:11:14: note: 'int d' previously declared here
11 | void thu(int d){
| ~~~~^
xylophone.cpp:28:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
28 | return *max_element(a+1, a+n+1) <= n;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
xylophone.cpp: In function 'void solve(int)':
xylophone.cpp:38:15: error: could not convert 'thu(tp)' from 'void' to 'bool'
38 | if(thu(tp)){
| ~~~^~~~
| |
| void