Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101124 | 华雅萱 | 12输出3的倍数 | C++ | Compile Error | 0 MS | 0 KB | 179 | 2024-12-14 14:55:39 |
include<iostream> using namespace std; int main(){ for(int a=1;a<=100;a=a++){ if(a%3==0){ cout<<a<<" "; } } return 0; }
Main.cc:1:1: error: 'include' does not name a type include ^ Main.cc: In function 'int main()': Main.cc:4:26: warning: operation on 'a' may be undefined [-Wsequence-point] for(int a=1;a<=100;a=a++){ ^ Main.cc:6:12: error: 'cout' was not declared in this scope cout<