/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:13: error: invalid conversion from 'int' to 'void*' [-fpermissive]
  qsort(1,n+1);
             ^
/in/foo.cc:12:13: error: too few arguments to function 'void qsort(void*, size_t, size_t, __compar_fn_t)'
In file included from /usr/include/c++/6/cstdlib:75:0,
                 from /usr/include/c++/6/ext/string_conversions.h:41,
                 from /usr/include/c++/6/bits/basic_string.h:5417,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/stdlib.h:725:13: note: declared here
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
             ^~~~~

信息

递交者
类型
自测
题目
P1988 自行车比赛
语言
C++
递交时间
2017-11-09 17:25:54
评测时间
2017-11-09 17:25:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes