系统相关
首页 > 系统相关> > linux环境下的C++错误报告汇总

linux环境下的C++错误报告汇总

作者:互联网

linux环境下的C++错误报告汇总

1、“before"错误
一般出现before错误,都是语法错误,要么缺少“;”,或者少了一个“)”,还有就是while之类的关键字输入错误。
如:error.cpp:10:22: error: expected ‘)’ before ‘;’ token

2、出现“line 2: 2642 Segmenttation fault …… error”
基本上就是循环错误:死循环,超出范围
还可能是输入错误:cin.get();

标签:错误,linux,C++,错误报告,error,before
来源: https://blog.csdn.net/tlcym/article/details/102766069