Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118803 李折曦 07判断奇数 C++ Compile Error 0 MS 0 KB 180 2025-05-10 15:02:07

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main (){ int a; cin>>a; if(a%2=1) { cout<<"YES"<<endl; } else{ cout<<"NO"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:8: error: lvalue required as left operand of assignment
  if(a%2=1)
        ^