#include <iostream>#include <cstdlib>using namespace std;int main(){ int zbir; zbir<<"Verzija broj1:"<<endl; zbir=0; for(int i=1;i<=100;i++) zbir=zbir+i; cout<<"Zbirot na broevite od 1 do 100 e:"<<zbir<<endl; system("pause") return 0; }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:8:10: error: invalid operands of types 'int' and 'const char [15]' to binary 'operator<<' zbir<<"Verzija broj1:"<<endl; ^ prog.cpp:15:2: error: expected ';' before 'return' return 0; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!