Cannot run files or projects in Clion
已回答
I am using mingw-w64. Whenever i run it this comes, although i cannot find any mistake in the code. Previously it used to show this error message: createProcess error=193, %1 is not a valid win 32 application. Now the below messages are shown.
What should i do?

请先登录再写评论。
Hello!
In your project you have two main() functions - one in trial1.cpp and another in main.cpp.
Each main() function should belong to a separate executable (in other words, each executable should have only one main() function). In order to have several executables in your project, you need to create several CMake targets for them: there should be a add_executable(<target name> <file name>) line for each file in the CMakeLists.txt.
For example, if you have two files main.cpp and main2.cpp and you have a main() function in each of these files, the simplest CMakeLists.txt for such project should look similar to the following:
After that, you can choose which target to run (`my_project` or `my_project_2`) via "Run configuration" pop-up (left to the "Run" button).
Please read our quick CMake tutorial for more details: https://www.jetbrains.com/help/clion/quick-cmake-tutorial.html.
The problem got solved. Thank you so much for helping me.