memory2.cpp: In function 'int main()':
memory2.cpp:14:7: error: 'flip' was not declared in this scope
p[flip(i,j)]++;
^~~~
memory2.cpp:14:7: note: suggested alternative: 'flip1'
p[flip(i,j)]++;
^~~~
flip1
memory2.cpp:41:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < flip1[i].size(); j++) {
~~^~~~~~~~~~~~~~~~~
memory2.cpp:67:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); i++) {
~~^~~~~~~~~~