Compile Error

/in/foo.cc: In function 'int time(int, int, int, int, int)':
/in/foo.cc:24:22: error: 'a' was not declared in this scope
   24 |                 else(a[b]==29);{
      |                      ^
/in/foo.cc:24:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   24 |                 else(a[b]==29);{
      |                 ^~~~
/in/foo.cc:24:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   24 |                 else(a[b]==29);{
      |                                ^
/in/foo.cc:27:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   27 |         if(y%100!=0&&y%4==0)
      |         ^~
/in/foo.cc:29:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   29 |                 if(d+e>23){
      |                 ^~
/in/foo.cc:32:22: error: 'a' was not declared in this scope
   32 |                 if(c>a[b]){
      |                      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:40:24: error: expected ';' before 'return'
   40 |         time(y,b,c,d,e)
      |                        ^
      |                        ;
   41 |         return 0; }
      |         ~~~~~~          

信息

递交者
类型
自测
题目
P2881 时间跨越2025.3GESP2级T2
语言
C++
递交时间
2025-12-19 22:06:50
评测时间
2025-12-19 22:06:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes