printer.cpp: In instantiation of 'void dfs2(auto:55) [with auto:55 = long long int]':
printer.cpp:44:17: required from 'void dfs2(auto:55) [with auto:55 = node*]'
printer.cpp:59:21: required from here
printer.cpp:34:11: error: base operand of '->' is not a pointer
34 | while(cur -> num--) ans+="P";
| ^~~
printer.cpp:37:12: error: base operand of '->' is not a pointer
37 | if(cur -> adj[i]){
| ^~~
printer.cpp:38:25: error: base operand of '->' is not a pointer
38 | if(m==-1 or cur -> adj[i] -> maxd > cur -> adj[m] -> maxd) m=i;
| ^~~
printer.cpp:38:49: error: base operand of '->' is not a pointer
38 | if(m==-1 or cur -> adj[i] -> maxd > cur -> adj[m] -> maxd) m=i;
| ^~~
printer.cpp:41:32: error: base operand of '->' is not a pointer
41 | for(int i=0; i<26; i++) if(cur -> adj[i]){
| ^~~
printer.cpp:42:12: error: base operand of '->' is not a pointer
42 | if(cur -> adj[i] and i!=m){
| ^~~