fork download
  1. #include<math.h>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5. int main()
  6. {
  7. int a, b, c, d = 19;
  8. float e, f, g;
  9. cin>>a;
  10. int *ar = new int[a];
  11. for (int i = 0; i<a ; i++) {
  12. ar[i] = input.nextInt();
  13. c = c + ar[i];
  14. }
  15.  
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:12:11: error: ‘input’ was not declared in this scope
   ar[i] = input.nextInt();
           ^~~~~
prog.cpp:12:11: note: suggested alternative: ‘ino_t’
   ar[i] = input.nextInt();
           ^~~~~
           ino_t
stdout
Standard output is empty