ec3.cpp:43:10: warning: unused variable 'q' [-Wunused-variable] int* q = new int; ^ ec3.cpp:11:5: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] a[10] = 0; ^ ~~ ec3.cpp:8:5: note: array 'a' declared here char a[10]; ^ ec3.cpp:66:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 3 warnings generated.