select the value stored, decide if its invalid

unable to build file and run file... any ideas?




#define PI 3.14159
#define MAX_I 1000
#include <iostream>
using namespace std;

int main()
{
double x, y;
int a, b, i;

a = 3;
b = 4;
y = -1.0;

i = (989 - MAX_I) / a;

cout << i << '\n';

}
Last edited on
Are you using a c++ compiler to build it?
Topic archived. No new replies allowed.