Why does this code give a compilation error?
#include <iostream> #include <string> using namespace std; int main() { cout<<"Welcome to Z# Console Interpreter Alpha version 1.0. Type <Zsharp.Libraries.Functions;> to get a list with all available Z# commands and functions."<<endl; cout<<"-->"; string s; getline(cin,s); int syntax = 0; //Print HelloWorld if(s=="AppFrame.Out.Hello;"){ cout<<"Hello World!"<<endl; cout<<"-->"; } //Sum two numbers int sumx; int sumy; int sum; if(s=="Arithmetic(x+y);"){ cin >> sumx; cin >> sumy; sum = sumx+sumy; cout<< sum <<endl; cout<<"-->"; } //Multiply two numbers int multipx; int multipy; int multip; if(s=="Arithmetic(x*y);"){ cin >> multipx; cin >> multipy; multip = multipx * multipy; cout<< multip <<endl; cout<<"-->"; } //Divide two numbers int dividx; int dividy; int divid; if(s=="Arithmetic(x/y);"){ cin >> dividx; cin >> dividy; divid = dividx / dividy; cout<< divid <<endl; cout<<"-->"; } //Subtract two numbers int subx; int suby; int sub; if(s=="Arithmetic(x-y);"){ cin >> subx; cin >> suby; sub = subx - suby; cout<< sub <<endl; cout<<"-->"; } //Prints a string to the screen string txt; if(s=="AppFrame.Out.Print;"){ getline(cin,txt); cout << txt; } //create variables if(s=="System.Var.New;"){ int newvar; cout << "Give this variable a value: "; cin >> newvar; } //Greets the user and asks for its name string username; if(s=="AppFrame.In.Greet"){ cout << "Please enter your name: "; getline(cin,username); cout << "Hello, "; cout << username; } //Gets a list with all the available R# commands if(s=="Zsharp.Libraries.Functions;"){ cout << "Arithmetic(x+y);\n"; cout << "Arithmetic(x*y);\n"; cout << "Ari