Illegal indirection when multiplicating

c++, visual-c++

Solution

#define PI 3.14;

The `;` is wrong, delete it.

btw, your line expands to `circle = 2 * 3.14; * r;` So the compiler is then complaining about the *r, which explains the error message.

Problem

I'm starting to learn C++. Here is a problem that I have: ``` #include <iostream> using namespace std; #define PI 3.14; int main(){ double r = 5.0; double circle; double inp; circle = 2 * PI * r; cout << circle; cin >> inp; } ``` It shows error: `error C2100: illegal indirection`. I've googled but found no answer. Thanks

Original source