#include <iostream>using namespace std; int main() { int taman [3]; int kilos [3]; int i ; int sum=0; for ( i= o ; i<3 ; i++) { cin >> taman [i]; sum = sum + taman [i]; } for ( i=o ; i<3 ; i++) { cin >> kilos [i]; sum = sum + kilos [i]; } return 0;}
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:9:11: error: ‘o’ was not declared in this scope for ( i= o ; i<3 ; i++) { ^ prog.cpp:13:13: error: ‘o’ was not declared in this scope for ( i=o ; i<3 ; i++) { ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!