so this is my code:
Code:
#include <iostream>
int main()
{
int integer1, integer2, sum;
std::cout << "Enter first integer\n";
std::cin >> integer1;
std::cout << "Enter second integer\n";
std::cin >> integer2;
sum = integer1 + integer2
std::cout << "Sum is " << sum << std::endl;
return 0;
}
These are the errors i get when i compile and try to run the file:
Code:
c:\users\bioshock\documents\c++\untitled1.cpp: In function `int main()': c:\users\bioshock\documents\c++\untitled1.cpp:12: use of namespace `std' as expression c:\users\bioshock\documents\c++\untitled1.cpp:12: parse error before `::'
Thanks.


