0

Can anyone help me out with this ?

"Main redeclared in this block" This error always comes up when I save a program in visual studio code. Can anyone help me with this ? I'm not able to run another program since one program with the main function is already stored on the same folder.

10th Jun 2021, 4:21 PM
Riya Patel
Riya Patel - avatar
1 ответ
+ 1
Riya Patel , hi. Because there can be only one main function in a package. Create another separate package for one file with main function. That's the solution.
11th Jun 2021, 9:40 AM
Maksat Ramazanov
Maksat Ramazanov - avatar