Compile Error

foo.cc: In function ‘int main()’:
foo.cc:13:9: error: expected ‘}’ before ‘else’
   13 |         else if(kl<st)
      |         ^~~~
foo.cc:8:9: note: to match this ‘{’
    8 |         {
      |         ^
foo.cc: At global scope:
foo.cc:18:9: error: ‘cout’ does not name a type
   18 |         cout<<x*2;
      |         ^~~~
foo.cc:19:9: error: expected unqualified-id before ‘return’
   19 |         return 0;
      |         ^~~~~~
foo.cc:20:1: error: expected declaration before ‘}’ token
   20 | }
      | ^

信息

递交者
类型
递交
题目
P1698 韩朵朵买KFC
语言
C++
递交时间
2025-08-28 18:35:19
评测时间
2025-08-30 15:32:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes