/in/calc.cpp:15:9: error: unknown type name 'string'
string input;
^
/in/calc.cpp:16:9: error: use of undeclared identifier 'cin'
cin>>input;
^
/in/calc.cpp:26:17: error: use of undeclared identifier 'cout'; did you mean 'count'?
cout<<"Bad input"<<endl;
^~~~
count
/in/calc.cpp:11:9: note: 'count' declared here
int count=0;//indicate how many numbers are stored
^
/in/calc.cpp:26:21: error: invalid operands to binary expression ('int' and 'const char *')
cout<<"Bad input"<<endl;
~~~~^ ~~~~~~~~~~~
/in/calc.cpp:26:36: error: use of undeclared identifier 'endl'
cout<<"Bad input"<<endl;
^
/in/calc.cpp:40:25: error: use of undeclared identifier 'cout'; did you mean 'count'?
cout << "Not enough operands"<<endl;
^~~~
count
/in/calc.cpp:11:9: note: 'count' declared here
int count=0;//indicate how many numbers are stored
^
/in/calc.cpp:40:30: error: invalid operands to binary expression ('int' and 'const char *')
cout << "Not enough operands"<<endl;
~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
/in/calc.cpp:40:56: error: use of undeclared identifier 'endl'
cout << "Not enough operands"<<endl;
^
/in/calc.cpp:46:25: error: use of undeclared identifier 'cout'; did you mean 'count'?
cout << "Not enough operands"<<endl;
^~~~
count
/in/calc.cpp:11:9: note: 'count' declared here
int count=0;//indicate how many numbers are stored
^
/in/calc.cpp:46:30: error: invalid operands to binary expression ('int' and 'const char *')
cout << "Not enough operands"<<endl;
~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
/in/calc.cpp:46:56: error: use of undeclared identifier 'endl'
cout << "Not enough operands"<<endl;
^
/in/calc.cpp:60:25: error: use of undeclared identifier 'cout'; did you mean 'count'?
cout << "Not enough operands"<<endl;
^~~~
count
/in/calc.cpp:11:9: note: 'count' declared here
int count=0;//indicate how many numbers are stored
^
/in/calc.cpp:60:30: error: invalid operands to binary expression ('int' and 'const char *')
cout << "Not enough operands"<<endl;
~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
/in/calc.cpp:60:56: error: use of undeclared identifier 'endl'
cout << "Not enough operands"<<endl;
^
/in/calc.cpp:74:25: error: use of undeclared identifier 'cout'; did you mean 'count'?
cout << "Not enough operands"<<endl;
^~~~
count
/in/calc.cpp:11:9: note: 'count' declared here
int count=0;//indicate how many numbers are stored
^
/in/calc.cpp:74:30: error: invalid operands to binary expression ('int' and 'const char *')
cout << "Not enough operands"<<endl;
~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
/in/calc.cpp:74:56: error: use of undeclared identifier 'endl'
cout << "Not enough operands"<<endl;
^
/in/calc.cpp:80:29: error: use of undeclared identifier 'cout'; did you mean 'count'?
cout<<"Divide by zero"<<endl;
^~~~
count
/in/calc.cpp:11:9: note: 'count' declared here
int count=0;//indicate how many numbers are stored
^
/in/calc.cpp:80:33: error: invalid operands to binary expression ('int' and 'const char *')
cout<<"Divide by zero"<<endl;
~~~~^ ~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/in/Compile/Makefile:44: recipe for target 'buildCalc' failed
make: *** [buildCalc] Error 1