Code won't run or debug: brings back error code "Failed launch no binary" or something like that

#include <iostream> // include stream for input/output functionality
using namespace std;
// function main begins program execution

int main() // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers // set class main begin with return values as integers
{

int num1; // this makes the first integer a readable value
int num2; // this makes the second integer a readable value
int num3; // this makes the third integer a readable value

int smallest; //this makes the information for the "smallest" integer a readable value
int largest; //this makes the information for the "largest" integer a readable value
int sum; // this makes the information "sum" a readable value
int average; // this makes the information "average" a readable value
int product; // this makes the information "product" a readable value

cout << "Please enter first number\n "; // prompt for user to enter the first integer
cin << num1; // value storage for user entered value of first integer

cout << "Please enter second number\n "; // prompt for user to enter the second integer
cin << num2; // value storage for user entered value of second integer

cout << "Please enter third number\n "; // prompt for user to enter the third integer
cin << num3; // value storage for user entered value of third integer

cout << "Great thanks!" end1;

smallest = num1; // assume first integer is smallest and that user enters integers 1 through 3 from smallest to largest
if (num2 < smallest)
smallest = num2; // value placement for num2 as smallest if second integer is smaller than assumed first as smallest
if (num3 < smallest)
smallest = num3; // value placement for num3 as smallest if third integer is smaller than assumed second as smallest
cout << smallest << std::end1; // read value "smallest"

largest = num3; // assume third integer is largest and that user enters integers 1 through 3 from smallest to largest
if (num1 > largest)
largest = num1; // value placement for num1 as largest if first integer is larger than assumed third as largest
if (num2 > largest)
largest = num2; // value placement for num2 as largest if second integer is larger than assumed first as largest
cout << largest << std::end1; // read value "largest"

sum = num1 + num2 + num3; // sum calculation
cout << "Sum is " << sum << std::endl; // sum value read out

average = sum / 3; // average calculation
cout << "Average is " << average << std::endl; // average value read out

product = num1 * num2 * num3; // product calculation
cout << "Product is " << product << std::end1; // product value read out

} //end main
Your code does not compile:
http://ideone.com/1ygsw6
sometimes you write endl, sometimes end1 sometimes you leave out the "cout << " altogether

there's no point prefixing everything with std:: since you've already done using namespace std;
you should put your code within code bracket <>(see format).

Also if you check some of your endl; are end1;"
they should be "endl;"
And your cout << is correct
however cin should be cin >>
you were also missing an operator after "Great Thanks"
it should be cout << "Great thanks!" << endl;
If you fix thoes is hould run properly
Last edited on
Topic archived. No new replies allowed.