0

my code isn't running on dev cpp why?

11 79[Error] in C++98 'pikachuAttacks' must be initialized by constructor, not by '{...}' https://www.sololearn.com/compiler-playground/cINOO7CueVlO this code works finely in sololearn's code playground but in dev cpp it gives this error. why it's working in some code editor and some not?? and how can i fix it

18th Dec 2022, 2:32 PM
Lalala
Lalala - avatar
2 Réponses
+ 3
I was just guessing maybe devcpp needs to be configured to enable C++11 features?
18th Dec 2022, 3:22 PM
Ipang
0
Lalala The link isn't working. Pls try like this: tap "+", then "Code", and select your code.
20th Dec 2022, 12:31 AM
Emerson Prado
Emerson Prado - avatar