prog.cpp: In function 'int main()':
prog.cpp:5:5: error: 'i' was not declared in this scope
for(i = 0; i < NUM_VALS; ++i)
^
prog.cpp:5:16: error: 'NUM_VALS' was not declared in this scope
for(i = 0; i < NUM_VALS; ++i)
^
prog.cpp:8:18: error: 'origList' was not declared in this scope
printf("%d ", origList[i] + offsetAmount[i]);
^
prog.cpp:8:32: error: 'offsetAmount' was not declared in this scope
printf("%d ", origList[i] + offsetAmount[i]);
^