记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:13:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else
  ^~~~
/in/foo.cc:21:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
   int num;
   ^~~
/in/foo.cc:22:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(month=4||month==6||month==9||month==11)//或者||并且&&
                                            ^
/in/foo.cc:24:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   else
   ^~~~
/in/foo.cc:29:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
    printf("%d\n",num);
    ^~~~~~
/in/foo.cc:31:1: error: expected ';' before '}' token
 }
 ^

信息

递交者
类型
递交
题目
A1-3 分支结构练习:月份天数
比赛
泰院2401程序设计基础作业赛第一场(牛刀小试)
语言
C++
递交时间
2024-10-21 16:36:09
评测时间
2024-10-21 16:36:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes