fork download
  1. #include<iostream.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5. int arr[i];
  6. int I,sum=0;
  7. clrscr();
  8. For(i=0;i<=9;i++)
  9. {
  10. Cout<<”Enter “<<i<<” Value in array”<<endl;
  11. Cin>>arr[i];
  12. If(arr[i]%2==0)
  13. Sum=sum+arr[i];
  14. }
  15. cout<<”Sum of even Numbers is =<<sum<<endl;
  16. getch();
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:21: error: iostream.h: No such file or directory
prog.cpp:2:18: error: conio.h: No such file or directory
prog.cpp:10: error: stray ‘\342’ in program
prog.cpp:10: error: stray ‘\200’ in program
prog.cpp:10: error: stray ‘\235’ in program
prog.cpp:10: error: stray ‘\342’ in program
prog.cpp:10: error: stray ‘\200’ in program
prog.cpp:10: error: stray ‘\234’ in program
prog.cpp:10: error: stray ‘\342’ in program
prog.cpp:10: error: stray ‘\200’ in program
prog.cpp:10: error: stray ‘\235’ in program
prog.cpp:10: error: stray ‘\342’ in program
prog.cpp:10: error: stray ‘\200’ in program
prog.cpp:10: error: stray ‘\235’ in program
prog.cpp:15: error: stray ‘\342’ in program
prog.cpp:15: error: stray ‘\200’ in program
prog.cpp:15: error: stray ‘\235’ in program
prog.cpp:15: error: stray ‘\342’ in program
prog.cpp:15: error: stray ‘\200’ in program
prog.cpp:15: error: stray ‘\234’ in program
prog.cpp:3: error: ‘::main’ must return ‘int’
prog.cpp: In function ‘int main()’:
prog.cpp:5: error: ‘i’ was not declared in this scope
prog.cpp:7: error: ‘clrscr’ was not declared in this scope
prog.cpp:8: error: expected `;' before ‘)’ token
prog.cpp:15: error: ‘cout’ was not declared in this scope
prog.cpp:15: error: ‘Sum’ was not declared in this scope
prog.cpp:15: error: expected `;' before ‘of’
prog.cpp:16: error: ‘getch’ was not declared in this scope
prog.cpp:6: warning: unused variable ‘I’
prog.cpp:6: warning: unused variable ‘sum’
stdout
Standard output is empty