记录详情

Compile Error

foo.cc: In function 'void qsort(int, int)':
foo.cc:19:5: error: expected 'while' before 'main'
   19 | int main()
      |     ^~~~
foo.cc:19:5: error: expected '(' before 'main'
   19 | int main()
      |     ^~~~
      |     (
foo.cc:19:5: error: 'main' was not declared in this scope
   19 | int main()
      |     ^~~~
foo.cc:19:11: error: expected ')' before '{' token
   19 | int main()
      |     ~~~~  ^
      |           )
   20 | {
      | ~          
foo.cc:19:11: error: expected ';' before '{' token
   19 | int main()
      |           ^
      |           ;
   20 | {
      | ~          
foo.cc:31:9: error: return-statement with a value, in function returning 'void' [-fpermissive]
   31 |  return 0;
      |         ^
foo.cc:32:1: error: expected '}' at end of input
   32 | }
      | ^
foo.cc:7:1: note: to match this '{'
    7 | {
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
快速排序
语言
C++
递交时间
2022-03-27 15:53:14
评测时间
2022-03-27 15:53:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes