The compiler is giving three warnings/errors:

  1. The function declaration for 'main()' does not have a prototype, which is deprecated in C and conflicts with a previous declaration. This means that the compiler cannot guarantee that the function is being used correctly.

  2. There is a conflicting declaration for the 'printf()' function. The previous declaration is in the 'stdio.h' header file and the new declaration is in the 'main()' function.

  3. The 'while(true)' statement is outside of a function. This means that it cannot be executed and is not valid syntax.

C Compiler Errors: 'printf' Conflict, 'while' Loop Issue, and Deprecated Function Declaration

原文地址: https://www.cveoy.top/t/topic/oWup 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录