Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2759 | 莫业祁 | 能否被3和5整除 | C++ | Compile Error | 0 MS | 0 KB | 164 | 2024-01-22 17:29:08 |
# include<iostream> using namespace std; int main{ int n; cin>>n; if(n/5==0&&n/3==0) cout<<"can"<<endl; else cout<<"cannot"<<endl; }
Main.cc:4:5: error: expected primary-expression before 'int' int n; ^ Main.cc:4:5: error: expected '}' before 'int' Main.cc:4:5: error: expected ',' or ';' before 'int' Main.cc:5:5: error: 'cin' does not name a type cin>>n; ^ Main.cc:6:5: error: expected unqualified-id before 'if' if(n/5==0&&n/3==0) ^ Main.cc:8:5: error: expected unqualified-id before 'else' else cout<"cannot"<<endl; ^ Main.cc:9:1: error: expected declaration before '}' token } ^