Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
83816 张曦 能否被3和5整除 C++ Compile Error 0 MS 0 KB 158 2024-07-15 08:36:49

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:18: error: lvalue required as left operand of assignment
 if (n%3=0 and n%5=0)
                  ^