hw2a.cpp: In function 'int main()': hw2a.cpp:11:13: warning: declaration of 'i' shadows a previous local [-Wshadow] 11 | int i = 4; | ^ hw2a.cpp:6:9: note: shadowed declaration is here 6 | int i; | ^ hw2a.cpp:8:13: warning: 'i' is used uninitialized in this function [-Wuninitialized] 8 | cout << i << endl; | ^
i+= i;
to i = i + 10;