/ Vijos /

记录详情

Compile Error

foo.cpp:4:11: error: 'int y1' redeclared as different kind of symbol
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/../../../../include/math.h:258:24: error: previous declaration of 'double y1(double)'
foo.cpp: In function 'int main()':
foo.cpp:8:15: error: ambiguous overload for 'operator>>' in '(& std::cin.std::basic_istream<_CharT, _Traits>::operator>> [with _CharT = char, _Traits = std::char_traits<char>]((* & x1)))->std::basic_istream<_CharT, _Traits>::operator>> [with _CharT = char, _Traits = std::char_traits<char>]((* & x2)) >> y1'
foo.cpp:8:15: note: candidates are:
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:122:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match>
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:122:7: note:   no known conversion for argument 1 from 'double(double) {aka double(double)}' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&) {aka std::basic_istream<char>& (*)(std::basic_istream<char>&)}'
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:126:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__ios_type& (*)(std::basic_istream<_CharT, _Traits>::__ios_type&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>, std::basic_istream<_CharT, _Traits>::__ios_type = std::basic_ios<char>] <near match>
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:126:7: note:   no known conversion for argument 1 from 'double(double) {aka double(double)}' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}'
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:133:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match>
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:133:7: note:   no known conversion for argument 1 from 'double(double) {aka double(double)}' to 'std::ios_base& (*)(std::ios_base&)'
foo.cpp:9:27: error: invalid operands of types 'int' and '__gnu_cxx::__promote_2<int, int>::__type {aka double}' to binary 'operator%'

信息

递交者
类型
递交
题目
P1943 上学路上
比赛
2015年 安联杯安徽省青少年信息学奥林匹克竞赛(AHOI 2015)同步赛
语言
C++
递交时间
2015-04-18 21:59:26
评测时间
2015-04-25 18:00:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes