0_0_18345524_15570.cpp: In function 'int main()': 0_0_18345524_15570.cpp:43:23: error: 'maxv' was not declared in this scope for(int i = 1; i <= maxv; ++ i) ^