Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100241 | 金昱帆 | 12for循环练习II | C++ | Compile Error | 0 MS | 0 KB | 148 | 2024-12-07 11:56:46 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,j; a=4; j=8; for(int i=a;i<=j;i+1){ cout<<i,,endl; } return 0; }
Main.cc: In function 'int main()': Main.cc:6:20: warning: for increment expression has no effect [-Wunused-value] for(int i=a;i<=j;i+1){ ^ Main.cc:7:11: error: expected primary-expression before ',' token cout<