#include <iostream>using namespace std; int main() { int x = 5; int y = 4; int z = 9; int endResult = 0; endResult = x * y - z endResult = x + endResult; cout << "This is a string literal" << end1; cout << "endResult" << end1 cout << endResult; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:11:2: error: expected ‘;’ before ‘endResult’ endResult = x + endResult; ^~~~~~~~~ prog.cpp:13:40: error: ‘end1’ was not declared in this scope cout << "This is a string literal" << end1; ^~~~
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!