+ 2
Could you please explain the error?
7 Réponses
+ 4
It's not error it's a warning
As main function always returns something to the system
So function main should have return type as int and void.
Even though main does not return anything then return type in int main is ignored
If you use void with main some compiler compiles with warning.
+ 3
For some reason your code had illegal hidden characters/spaces
Works fine after I removed the spaces and used tabs
https://code.sololearn.com/cTak0j8TCXkw/?ref=app
+ 1
use int main instead void main
0
Explain it, plz. Why int? Why? Why?