29th Jun 2020, 1:41 AM
Kerry Mac
Kerry Mac - avatar
7 Respuestas
+ 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.
30th Jun 2020, 2:10 PM
Welcome To Hell
Welcome To Hell - avatar
+ 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
29th Jun 2020, 2:05 AM
♡Addy♡
♡Addy♡ - avatar
+ 1
use int main instead void main
29th Jun 2020, 3:19 AM
Lucas Rodrigues Caetano
Lucas Rodrigues Caetano - avatar
0
Explain it, plz. Why int? Why? Why?
29th Jun 2020, 4:16 AM
Kerry Mac
Kerry Mac - avatar