文档详情

C语言错误大全.docx

发布:2024-07-23约2.2千字共2页下载文档
文本预览下载声明

fatalerrorC1004:unexpectedendoffilefound未找到文件末尾(可能是括号匹配问题)

fatalerrorC1021:invalidpreprocessorcommand1nclude无效的编译预处理命令1nclude

fatalerrorC1083:Cannotopenincludefile:stdi.h:Nosuchfileordirectory不能打开头文件stdi.,h文件或文件夹不存在

errorC2101:onconstant不能计算常量的地址

errorC2059:syntaxerror:while在while附近,存在语法错误

errorC2061:syntaxerror:identifierx标识符x的附近,存在语法错误

errorC2065:i:undeclaredidentifier变量i未定义

errorC2078:toomanyinitializers数组/结构等变量初始化时的数据太多

errorC2087:Unknown:missingsubscript丢失数组下标

errorC2106:=:leftoperandmustbel-value

=的左侧应当是左值,即不能是常量

errorC2115:=:incompatibletypes

=两侧的类型不兼容

errorC2133:a:unknownsizea(可能是数组名)的大小不确定。

errorC2137:emptycharacterconstant空的字符常量

errorC2143:syntaxerror:missing;before......

在...之..前.,缺少;

errorC2146:syntaxerror:missing)beforeidentifier.

在标识符...之..前.缺少)

errorC2181:illegalelsewithoutmatchingifelse缺少匹配的if

errorC2198:printf:toofewactualparametersprint函f数的参数太少

errorC2223:leftof-xmustpointtostruct/union-x的左侧应是结构类型变量或联合类型变量

errorC2224:leftof.xmusthavestruct/uniontype.x的左侧应是结构类型变量或联合类型变量

errorC2371:f1:redefinition;differentbasictypes函数f1的接口被重定义,参数类型或返回值类型不一致warningC4101:x:unreferencedlocalvariable

x是一个从未被使用的局部变量

warningC4013:fiundefined;assumingexternreturningint函数f未i定义,假设其是外部函数,返回值类型是int

warningC4020:fun:toomanyactualparameters调用fun函数时,有太多的实参

warningC4033:f3mustreturnavalue函数f3应当有返回值语句

warningC4047:=:int*differsinlevelsofindirectionfromint赋值运算中的类型转换:从int转换到int可*能存在问题

warningC4098:f2:voidfunctionreturningavalue函数f2是无返回值的函数,竟然有返回值语句。

warningC4133:function:incompatibletypes-from...to...不兼容的类型转换(从..类.型向..类.型)

warningC4244:initializing:conversionfromconstdoubletoint,possiblelossofdata在初始化数据时,类型转换可能导致数据丢失

warningC4305:initializing:truncationfromconstinttochar初始化时,数据被截断

warningC4700:localvariablexusedwithouthavingbeen

显示全部
相似文档