Compile Error

foo.cc: In function 'int main()':
foo.cc:6:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    6 |     if(a%2==1);
      |     ^~
foo.cc:7:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    7 |     {
      |     ^
foo.cc:8:15: error: 'odd' was not declared in this scope
    8 |         cout<<odd;
      |               ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1011 判断奇数
语言
C++
递交时间
2023-11-10 16:25:11
评测时间
2023-11-10 16:25:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes