-6
error: expected expression before ';' token 
graph[ ptr->count ].count- ;
                           ^

I am getting the error shown when I compile my code in Geany. Can anyone please help what to do?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Tina
  • 1
  • 1

1 Answers1

-1

Assuming you’re trying to decrement...count by 1...you need one more minus sign, like this

int i = 10;
i--;

to be a valid expression in C/C++.

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278