| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 63454 | 邓昊源 | 输出九九乘法表 | C++ | Compile Error | 0 MS | 0 KB | 201 | 2024-01-07 17:26:23 |
#include<bits/stdc++.h> using namespace std; int main() { int n,i; for(i<1; i<=9; i++) { for(int j<1; j<=i; j++) { printf("%d*%d=%d",j,i,j*i); } } cout << endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:7: warning: statement has no effect [-Wunused-value]
for(i<1; i<=9; i++) {
^
Main.cc:8:12: error: expected ';' before '<' token
for(int j<1; j<=i; j++) {
^
Main.cc:8:12: error: expected primary-expression before '<' token
Main.cc:8:17: warning: for increment expression has no effect [-Wunused-value]
for(int j<1; j<=i; j++) {
^
Main.cc:8:20: error: expected ')' before ';' token
for(int j<1; j<=i; j++) {
^
Main.cc:8:22: error: 'j' was not declared in this scope
for(int j<1; j<=i; j++) {
^
Main.cc:6:6: warning: unused variable 'n' [-Wunused-variable]
int n,i;
^