Help

I have to see what's wrong with this, I have already fixed some of it but now I get this message(expected initializer before ‘-’ token) on a debugging site to see what's wrong and I don't know what to do. Can someone explain to me?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
  #include <iostream>

using namespace std;

int main()
{
    int x1 = 20;
    int x2 = 16;
    int PCLP = -12;
    int PCLP-lab3 = 5;
    int double = 7;
    int sum_2 = 16;
    return 0;
}
Hyphens/Minus sign (-) cannot be part of a variable's name. Perhaps use an underscore or a more descriptive variable name.

double cannot be a variable name. It is a keyword built-in type.
Last edited on
thank you so much. I was able to fix it ^^
Topic archived. No new replies allowed.