#program crashing

15 messages · Page 1 of 1 (latest)

light ridge
#

#include <iostream>
using namespace std ;

int main()
{
int x,y;
cin>>x>>y>>;
cout<<"\t"<<y<<endl;
cout<<"\t"<<y<<y<<endl;
cout<<x<<x<<x<<x<<x<<y<<y<<y<<endl;
cout<<x<<x<<x<<x<<x<<y<<y<<y<<y<<endl;
cout<<x<<x<<x<<x<<x<<y<<y<<y<<endl;
cout<<"\t"<<y<<y<<endl;
cout<<"\t"<<y<<endl;

}

royal falconBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

light ridge
#
int main()
{
    int x,y;
    cin>>x>>y>>;
    cout<<"\t"<<y<<endl;
    cout<<"\t"<<y<<y<<endl;
    cout<<x<<x<<x<<x<<x<<y<<y<<y<<endl;
    cout<<x<<x<<x<<x<<x<<y<<y<<y<<y<<endl;
    cout<<x<<x<<x<<x<<x<<y<<y<<y<<endl;
    cout<<"\t"<<y<<y<<endl;
    cout<<"\t"<<y<<endl;

}
#

our prof wants this but it keeps crashing

inland ridge
#

A loop sure would be useful in this scenario

#

Look at the cin line more carefully

#

I don’t like your professor already just looking at this code sadge

modest verge
#

Pb is line cin>>x>>y>>;

#

should be cin>>x>>y;

sour wadi
#

What do you mean "crashing"?

#

A compilation error is not that

light ridge
light ridge
light ridge