Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69343 张恒杰 能否被3和5整除 C++ Compile Error 0 MS 0 KB 212 2024-03-31 17:48:34

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; for(int i=1;i<=n;i++) { cin>>i; if(i%3==0&&i%5==0) { cout"can"; } else { cout<<"cannot"; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:8: error: expected ';' before string constant
    cout"can";
        ^
Main.cc:10:13: warning: statement has no effect [-Wunused-value]
    cout"can";
             ^