Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145590 张晓冉 能否被3和5整除 C++ Compile Error 0 MS 0 KB 213 2026-01-25 16:48:37

Tests(0/0):


Code:

include<iostream> #include<cstdio> using namespace std; int main() { int a; cin>>a; if(a % 3 == 0 && a % 5 == 0){ cout<<"can"; }else{ cout<<"cannot"; } return 0; }


Run Info:

Main.cc:1:1: error: 'include' does not name a type
 include 
 ^
Main.cc: In function 'int main()':
Main.cc:9:5: error: 'cin' was not declared in this scope
     cin>>a;
     ^
Main.cc:11:6: error: 'cout' was not declared in this scope
      cout<<"can";
      ^
Main.cc:13:6: error: 'cout' was not declared in this scope
      cout<<"cannot";
      ^