foo.cpp: In function 'int ilog2_kf(int)':
foo.cpp:5:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return (((*(int*)&q)>>23)+1)&31;
^
foo.cpp: In function 'int gen(int)':
foo.cpp:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
foo.cpp: In function 'void record(int)':
foo.cpp:38:6: error: redefinition of 'void record(int)'
void record(int n){
^
foo.cpp:26:6: note: 'void record(int)' previously defined here
void record(int i){
^