Getting some kind of (lldb) error with a weird message

Hi all,

I'm having trouble with getting an output from my program here. The build succeeds just fine, but then I get the dreaded (lldb) notification and it shows me this bit of code here

http://i.imgur.com/OvsshEA.png

Any help would be much appreciated.



Original code is below. . .

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include <iostream>
#include <cmath>
#include <iomanip>

using namespace std;

void StandardError(string x);

int main ()
{
    StandardError(0);
    return(0);
}

void StandardError(string x)
{

int i;
double SE1;
double SE2;
double SE3;
double SE4;
double SE5;


cout << "Please enter the postal abbreviation of the state you would like to check" << endl;
cin >> x;

for(i=0; i<=0; i++)
{
    
    if (x == "CA")	{
        SE1 = sqrt((((.55)*(1-(.55)))/(100)) + (((.25)*(1-(.25)))/(100)));
        cout << "The standard error for" << x << " is " << SE1 << endl;
    }
    
    if (x == "CO")	{
        SE2 = sqrt((((.35)*(1-(.35)))/(100)) + (((.45)*(1-(.45)))/(100)));
        cout << "The standard error for" << x << " is " << SE2 << endl;
    }
    
    if (x == "TX")	{
        SE3 = sqrt((((.7)*(1-(.7)))/(100)) + (((.2)*(1-(.2)))/(100)));
        cout << "The standard error for" << x << " is " << SE3 << endl;
    }
    
    if (x == "FL")	{
        SE4 = sqrt((((.65)*(1-(.65)))/(100)) + (((.3)*(1-(.3)))/(100)));
        cout << "The standard error for" << x << " is " << SE4 << endl;
    }
    
    if (x == "VA")	{
        SE5 = sqrt((((.45)*(1-(.45)))/(100)) + (((.4)*(1-(.4)))/(100)));
        cout << "The standard error for" << x << " is " << SE5 << endl;
    }
    
    cout << "Please enter another state" << endl;
    cin >> x;
    
}

}
Tell me, what type of input parameter is the function StandardError expecting, and what are you calling it with?
Topic archived. No new replies allowed.