foo.cpp:43:1: error: 'iNNt' does not name a type
foo.cpp: In function 'void add(int, int, int)':
foo.cpp:46:5: error: 'pre' was not declared in this scope
foo.cpp:46:11: error: 'tote' was not declared in this scope
foo.cpp:46:19: error: 'last' was not declared in this scope
foo.cpp:48:5: error: 'other' was not declared in this scope
foo.cpp:49:5: error: 'len' was not declared in this scope
foo.cpp: In function 'void bfs(int)':
foo.cpp:65:22: error: 'last' was not declared in this scope
foo.cpp:65:38: error: 'pre' was not declared in this scope
foo.cpp:67:21: error: 'other' was not declared in this scope
foo.cpp:77:25: error: 'len' was not declared in this scope