Why my new c++ code doesn't working??? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Why my new c++ code doesn't working???

it's so sad... šŸ˜¢

3rd Mar 2018, 9:00 PM
ŠšŠ»ŠøŠ¼Š¾Š² Š”Š°Š½ŠøŠ»
ŠšŠ»ŠøŠ¼Š¾Š² Š”Š°Š½ŠøŠ» - avatar
2 Respostas
+ 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.
3rd Mar 2018, 9:06 PM
Alex
Alex - avatar