请问出现这样错误应该怎么改?求大神指点

qq_41894015 2019-05-05 04:39:01
6 1 C:\Users\Administrator\Desktop\未命名1.cpp [Error] expected initializer before 'typedef' 9 2 C:\Users\Administrator\Desktop\未命名1.cpp [Error] 'Coordinate' does not name a type 19 23 C:\Users\Administrator\Desktop\未命名1.cpp [Error] 'Coordinate' was not declared in this scope 19 34 C:\Users\Administrator\Desktop\未命名1.cpp [Error] 'l' was not declared in this scope 19 41 C:\Users\Administrator\Desktop\未命名1.cpp [Error] expected primary-expression before '*' token 19 42 C:\Users\Administrator\Desktop\未命名1.cpp [Error] 'p' was not declared in this scope 19 43 C:\Users\Administrator\Desktop\未命名1.cpp [Error] expression list treated as compound expression in initializer [-fpermissive] 20 1 C:\Users\Administrator\Desktop\未命名1.cpp [Error] expected ',' or ';' before '{' token
...全文
4995 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
六道佩恩 2019-05-05
  • 打赏
  • 举报
回复
复合语句,写错了
六道佩恩 2019-05-05
  • 打赏
  • 举报
回复
只有预处理命令不需要分号,因为那是写给编译器看的,告诉他编译前做这些处理,预处理命令不完全算C语法,这样看的话,C语法都是需要分号的,符合语句{}就当做另一种形式的分号。
自信男孩 2019-05-05
  • 打赏
  • 举报
回复
全局变量也是需要分号;的
shanshenyuyou 2019-05-05
  • 打赏
  • 举报
回复
①第五行,最后面加分号 ②指针类型,在*之前加空格,比如Mgrap *p
拥抱Linux 2019-05-05
  • 打赏
  • 举报
回复
先在第 5 行 的末尾 增加 一个 分号 再说。
stherix 2019-05-05
  • 打赏
  • 举报
回复
int visted[MAXEX] 后面没有分号;

70,018

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧