记录详情

Compile Error

foo.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main()
      | ~~~                 
foo.cc: In function 'int main()':
foo.cc:6:9: error: expected unqualified-id before numeric constant
    6 |     int 3,1
      |         ^
foo.cc:9:12: error: 'a' was not declared in this scope
    9 |         if(a>b)
      |            ^
foo.cc:9:14: error: 'b' was not declared in this scope
    9 |         if(a>b)
      |              ^
foo.cc:11:12: error: 'a' was not declared in this scope
   11 |         if(a>b)
      |            ^
foo.cc:11:14: error: 'b' was not declared in this scope
   11 |         if(a>b)
      |              ^
foo.cc:12:17: error: 'cont' was not declared in this scope; did you mean 'const'?
   12 |                 cont<<b<<endl;
      |                 ^~~~
      |                 const
foo.cc:14:17: error: 'cont' was not declared in this scope; did you mean 'const'?
   14 |                 cont<<NO RESULT<<endl;
      |                 ^~~~
      |                 const
foo.cc:14:23: error: 'NO' was not declared in this scope
   14 |                 cont<<NO RESULT<<endl;
      |                       ^~
foo.cc:15:17: error: expected ';' before '}' token
   15 |         return 0
      |                 ^
      |                 ;
   16 | 
   17 | }
      | ~                
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1357 4A 第k小的数
比赛
2023暑期青少年社团(惜别赛)
语言
C++
递交时间
2023-08-24 20:24:56
评测时间
2023-08-24 20:24:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes