Questions tagged [exitstatus]
78 questions
-3
votes
2 answers
Array of structures program has unknown compiling or segmantation error, c++
I'm writing this program that includes structs, the program works then crashes after the first iteration in repl.it ide, and runs 2-3 times in my cygwin command line. I just started using c++ so I don't see anything immediately but I believe the…

Valerie Andy
- 23
- 1
- 3
-3
votes
1 answer
how to solve exit status 1 error?
I want to write c++ code which will separate all elements which have same length as input value
#include
#include
using namespace std;
string database[] = {"green", "stupid", "boy", "girl", "forest", "mobile", "morning", "love",…

Vahe Yavrumian
- 533
- 8
- 24
-3
votes
2 answers
My DEV C++ IDE continously gives me the message:"Id returned 1 exit status" and "Undefined reference to "function(int, int)". How to fix it?
Here's my code
#include
#include
int func(int , int);
main(){
int m[3][3]={(0,0,0),
(0,0,0),
(0,0,1)};
int n=3,a;
a=func(m[3][3], n);
if(a==1) printf("True");
else printf ("False");
getch();
}
int…

Geni Jaho
- 75
- 1
- 7