#include<iostream.h> #include<conio.h> void main() { int arr[i]; int I,sum=0; clrscr(); For(i=0;i<=9;i++) { Cout<<”Enter “<<i<<” Value in array”<<endl; Cin>>arr[i]; If(arr[i]%2==0) Sum=sum+arr[i]; } cout<<”Sum of even Numbers is = “<<sum<<endl; getch(); }
Standard input is empty
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’
Standard output is empty