在int j之前预期的不合格id.我知道它可能偏离主题,但我找不到错误
expected unqualified id before int j. I know it might be off topic but i cant find the error
#include <iostream>
using namespace std;
int main ()
{
for (int i = 0; i < 10;i++)
{
cout << 't' << i; // t represent a tab character, which will format our output nice;y
}
cout << 'n';
for( int i = 0; i < 10; ++i)
cout << i;
}
(int j = 0; j < 10; ++j)
cout <<'t' << i * j;
}
cout << 'n';
}
}
for关键字缺失,大括号中有很多错误。我建议使用适当的缩进来避免这样的错误
您在使用j时忘记了循环中的for关键字。
相关文章:
- 静态链接库时,收到链接器错误:找不到 -lgcc_s
- C++ ZBar cmake 错误"找不到文件"时包括
- GTK+3 编译错误"找不到信号处理程序",您是否使用 -rdynamic 进行了编译?
- SWIG c++ 到 C# 错误找不到入口点SWIGRegisterExceptionCallbacks_xxxx
- NDK R20 LD:LD:错误:找不到-lpthread
- 双重释放或损坏错误(找不到错误?
- 错误找不到-lglu
- 错误:找不到匹配的超载函数
- 生成文件错误 - 找不到文件 - *.cpp
- Qt 创建器错误:找不到 -lopencv_imgcodecs
- 无法配置 AGENT++ 配置: 错误: 找不到合适的 libsnmp++ 库
- CMake 错误:找不到变量.ACE_INCLUDE_DIR(高级)
- CMake 包含错误(找不到文件、未定义引用)
- 链接错误:找不到__thiscall函数符号,但定义了__cdecl函数符号
- 运行时错误:找不到与 ImageSensor 匹配的 Python 模块
- 编译错误:找不到库
- CMake错误:找不到包含目录和库
- Mac OSX:构建opencv_contrib致命错误:找不到文件 opencv2/core.hpp
- Qt 创建者编译错误"找不到 UIC.exe从 msvc 2012 路径"
- Ubuntu - 链接 boost.python - 致命错误:找不到 pyconfig