记录详情

Compile Error

/in/foo.cc: In function 'void div(int, int)':
/in/foo.cc:4:6: error: ambiguating new declaration of 'void div(int, int)'
 void div(int x,int y)
      ^~~
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:749:14: note: old declaration 'div_t div(int, int)'
 extern div_t div (int __numer, int __denom)
              ^~~

信息

递交者
类型
递交
题目
A11-5 小数的循环节
比赛
2024程序设计与竞赛作业赛第三场(七十二变)
语言
C++
递交时间
2024-10-20 19:53:51
评测时间
2024-10-20 19:53:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes