c语言中error c2109,大二的c++ 求助大神看看哪错了

在尝试编译名为21.c的C程序时遇到了多个语法错误,包括缺失的分号、未声明的标识符以及对数组或指针类型的误用。错误集中在变量声明、使用未定义的变量和数组操作上。解决这些问题需要检查变量定义、类型匹配以及表达式的正确性。
摘要由CSDN通过智能技术生成

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

E:\Users\201323010627\Desktop\21.c(8) : error C2143: syntax error : missing ';' before 'type'

E:\Users\201323010627\Desktop\21.c(9) : error C2143: syntax error : missing ';' before 'type'

E:\Users\201323010627\Desktop\21.c(10) : error C2143: syntax error : missing ';' before 'type'

E:\Users\201323010627\Desktop\21.c(12) : error C2143: syntax error : missing ';' before 'type'

E:\Users\201323010627\Desktop\21.c(13) : error C2065: 'count' : undeclared identifier

E:\Users\201323010627\Desktop\21.c(15) : error C2065: 'x' : undeclared identifier

E:\Users\201323010627\Desktop\21.c(19) : error C2065: 'number' : undeclared identifier

E:\Users\201323010627\Desktop\21.c(19) : error C2109: subscript requires array or pointer type

E:\Users\201323010627\Desktop\21.c(19) : error C2106: '=' : left operand must be l-value

E:\Users\201323010627\Desktop\21.c(23) : error C2143: syntax error : missing ';' before 'type'

E:\Users\201323010627\Desktop\21.c(24) : error C2065: 'i' : undeclared identifier

E:\Users\201323010627\Desktop\21.c(26) : error C2065: 'result' : undeclared identifier

E:\Users\201323010627\Desktop\21.c(26) : error C2109: subscript requires array or pointer type

E:\Users\201323010627\Desktop\21.c(26) : error C2109: subscript requires array or pointer type

E:\Users\201323010627\Desktop\21.c(26) : error C2105: '++' needs l-value

E:\Users\201323010627\Desktop\21.c(27) : error C2109: subscript requires array or pointer type

E:\Users\201323010627\Desktop\21.c(33) : error C2109: subscript requires array or pointer type

E:\Users\201323010627\Desktop\21.c(33) : error C2109: subscript requires array or pointer type

执行 cl.exe 时出错.

21.exe - 1 error(s), 0 warning(s)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值