memory.cpp: In function 'int main()':
memory.cpp:63:11: error: 'faceup' was not declared in this scope
63 | a [x] = faceup (x) - 'A' ;
| ^~~~~~
memory.cpp:79:3: error: expected primary-expression before 'else'
79 | else if ( pos[a[y]] )
| ^~~~
memory.cpp:54:8: warning: unused variable 'ok' [-Wunused-variable]
54 | bool ok = false ;
| ^~
memory.cpp:86:27: error: 'faceup' was not declared in this scope
86 | for ( auto x : can_get ) faceup (x.fi) , faceup (x.se) ;
| ^~~~~~
memory.cpp:87:2: error: return-statement with no value, in function returning 'int' [-fpermissive]
87 | return ;
| ^~~~~~
memory.cpp: In function 'void rf()':
memory.cpp:31:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | freopen ("bai1.inp","r",stdin) ;
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~