/in/foo.cc: In function 'void add(int, int)':
/in/foo.cc:50:24: error: 'heads' was not declared in this scope
50 | memchi[gn].nxt=heads[s];
| ^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:134:22: error: expected ';' before '\U0000ff1b'
134 | ptr--;
| ^~
| ;
/in/foo.cc:135:47: error: 'i' was not declared in this scope
135 | for(register int i=heads[me]; i; i=memchi[i].nxt) {
| ^
/in/foo.cc:151:44: error: 'fheads' was not declared in this scope; did you mean 'heads'?
151 | for(register int i=fheads[me]; i; i=memchi[i].nxt) {
| ^~~~~~
| heads
/in/foo.cc: In function 'int get()':
/in/foo.cc:25:1: warning: control reaches end of non-void function [-Wreturn-type]
25 | }
| ^