Because of the compiler, some compilers require that the int() function must have an int return value
Change void main() to int main(), and add return 0 to the end:
int main()
{
......//content
return 0;
}
Compilation succeeded.
Read More:
- [Git] Solve git branch -M main error: refname refs/heads/master not found
- [Solved] Linux Service Start Error: *.service: Main process exited, code=exited, status=203/EXEC
- Linux Drive Error: Error: function declaration isn’t a prototype
- [Solved] Linux C++ warning: ISO C++ forbids converting a string constant to ‘char*‘ [-Wwrite-strings]
- Parse error in ubantu/Linux system [How to Solve]
- Vector series in actual C + +_ To_ fit()
- How to Create Threads in Linux
- Ffmpeg about Avio_alloc_Context application for memory release
- Linux Error: CMake Error in CMakeLists.txt: No CMAKE_CXX_COMPILER could be found.
- Sublime text 3 compiles and executes C/C++ programs directly
- [Solved] catkin_make Error: pkg_resources.DistributionNotFound: pyparsing
- [Solved] Linux Calls mmap Error: mmap: Invalid argument
- PM2 user defined Log, PID and other Log File Locations
- [Solved] Fatal error LNK1169: one or more multiple defined symbols were found
- [Linux] undefined reference to `itoa’
- Linux: How to Fix undefined reference to `itoa’
- Popen error: cannot allocate memory [How to Solve]
- Solved: could not find the task ‘G + + build active file, leetcode algorithm ACM compilation and debugging
- Linux Error: error: stray ‘\302‘ in program [Solved]
- How to Use Annotations in Flutter & Dart