Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96758 | 何松羽 | 12输出m的倍数 | C++ | Compile Error | 0 MS | 0 KB | 151 | 2024-11-09 13:19:34 |
#include<bits/stdc++.h> using namespace std; int main(){ for(int m=1;int<=100;i++){ if(i%2==0){ cout<<i<<" " } } return 0; }
Main.cc: In function 'int main()': Main.cc:5:14: error: expected primary-expression before 'int' for(int m=1;int<=100;i++){ ^ Main.cc:5:14: error: expected ';' before 'int' Main.cc:5:14: error: expected primary-expression before 'int' Main.cc:5:14: error: expected ')' before 'int' Main.cc:5:17: error: expected unqualified-id before '<=' token for(int m=1;int<=100;i++){ ^ Main.cc:5:10: warning: unused variable 'm' [-Wunused-variable] for(int m=1;int<=100;i++){ ^ Main.cc:5:23: error: 'i' was not declared in this scope for(int m=1;int<=100;i++){ ^