| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69825 | 刘老师 | 能否被3和5整除 | C++ | Compile Error | 0 MS | 0 KB | 164 | 2024-04-09 13:16:03 |
#include<iostream> using namespace std; int main(){ int n; cin>>n if(n%3==0 && n%5==0){ printf("can"); } else{ printf("cannot"); } }
Main.cc: In function 'int main()':
Main.cc:6:2: error: expected ';' before 'if'
if(n%3==0 && n%5==0){
^
Main.cc:10:2: error: 'else' without a previous 'if'
else{
^