Compile error in AA.cpp