Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:2: error: 'cin' was not declared in this scope
  cin>>a;
  ^~~
/in/foo.cc:8:14: warning: comparison of constant '10000' with boolean expression is always true [-Wbool-compare]
  if(-10000<=a<=10000&&a%2=0)
     ~~~~~~~~~^~~~~~~
/in/foo.cc:8:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  if(-10000<=a<=10000&&a%2=0)
     ~~~~~~^~~
/in/foo.cc:8:27: error: lvalue required as left operand of assignment
  if(-10000<=a<=10000&&a%2=0)
                           ^
/in/foo.cc:9:3: error: 'cout' was not declared in this scope
   cout<<"yes";
   ^~~~
/in/foo.cc:11:3: error: 'cout' was not declared in this scope
   cout<<"no";
   ^~~~

信息

递交者
类型
自测
题目
P1705 判断奇偶
语言
C++
递交时间
2024-11-09 12:03:03
评测时间
2024-11-09 12:03:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes