Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
139180 芦睿霖 能否被3和5整除 C++ Compile Error 0 MS 0 KB 228 2025-12-02 16:42:45

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:14:3: error: expected '}' before 'else'
   else
   ^