记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:17: warning: format '%i' expects argument of type 'int*', but argument 2 has type 'double*' [-Wformat=]
    6 |         scanf("%if",&x);
      |                ~^   ~~
      |                 |   |
      |                 |   double*
      |                 int*
      |                %le
/in/foo.cc:9:18: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
    9 |         }else if(x>0&&x<10{
      |                  ^
/in/foo.cc:9:27: error: expected ';' before '{' token
    9 |         }else if(x>0&&x<10{
      |                           ^
      |                           ;
/in/foo.cc:9:21: warning: statement has no effect [-Wunused-value]
    9 |         }else if(x>0&&x<10{
      |                  ~~~^~~~~~
/in/foo.cc:11:10: error: expected primary-expression before 'else'
   11 |         }else if(x>=10&&x<25){
      |          ^~~~
/in/foo.cc:11:10: error: expected ')' before 'else'
   11 |         }else if(x>=10&&x<25){
      |          ^~~~
      |          )
/in/foo.cc:9:17: note: to match this '('
    9 |         }else if(x>0&&x<10{
      |                 ^

信息

递交者
类型
递交
比赛
2025-C-1
语言
C++
递交时间
2025-12-29 09:16:04
评测时间
2025-12-29 09:16:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes