fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. for(i = 0; i < NUM_VALS; ++i)
  6.  
  7. {
  8. printf("%d ", origList[i] + offsetAmount[i]);
  9. }
  10. return 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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]);
                                ^
stdout
Standard output is empty