0
Why my new c++ code doesn't working???
it's so sad... 😢
2 ответов
+ 3
There are multiple errors.
Your main function has no curly bracket (->no body)
cin >> var (instead of cin << var)
the variable num in the for loop needs to be initialised (int num = 0)
What do you want the code to do? It seems a bit odd what's going on there.