Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63239 张誉腾 输出九九乘法表 C++ Compile Error 0 MS 0 KB 331 2024-01-06 19:18:37

Tests(0/0):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ #include <iostream> int main() { for (int i = 1; i <= 9; ++i) { for (int j = 1; j <= i; ++j) { std::cout << j << "*" << i << "=" << i * j << " "; } std::cout << std::endl; } return 0; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:12: error: a function-definition is not allowed here before '{' token
 int main() {
            ^
Main.cc:18:1: error: expected '}' at end of input
 } 
 ^