0

Hi { I am a new user }. Whenever I run a code it shows error in main(). I am not able to find why can anybody help me. Please.

2nd Jul 2021, 6:34 PM
Aman Singh
Aman Singh - avatar
3 Respuestas
+ 3
Hi! Please link your code here So we can help
2nd Jul 2021, 6:36 PM
Lisa
Lisa - avatar
0
May be the problem is that in your cpp code u using void main that's why becz implicit main is removed from c99 as long ago and cpp is more strict than c . So its giving you error . You can use int main () Or like this auto main()-> int ..... .... There are many ways to write main function its depend on you and compilers in msvc like this _tmain(.......)
2nd Jul 2021, 6:48 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Please tag your thread properly https://code.sololearn.com/W3uiji9X28C1/?ref=app
3rd Jul 2021, 1:33 AM
Ipang