/ Vijos /

记录详情

Compile Error

/in/foo.cc: In member function 'numbers numbers::operator/(numbers)':
/in/foo.cc:128:2: warning: no return statement in function returning non-void [-Wreturn-type]
  }
  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:136:11: error: no matching function for call to 'numbers::input()'
   a.input();
           ^
/in/foo.cc:20:10: note: candidate: numbers numbers::input(numbers&)
  numbers input(numbers &num)
          ^~~~~
/in/foo.cc:20:10: note:   candidate expects 1 argument, 0 provided
/in/foo.cc:137:11: error: no matching function for call to 'numbers::input()'
   b.input();
           ^
/in/foo.cc:20:10: note: candidate: numbers numbers::input(numbers&)
  numbers input(numbers &num)
          ^~~~~
/in/foo.cc:20:10: note:   candidate expects 1 argument, 0 provided
/in/foo.cc:139:12: error: no matching function for call to 'numbers::output()'
   c.output();
            ^
/in/foo.cc:32:10: note: candidate: numbers numbers::output(numbers, char)
  numbers output(const numbers num,char end='\n')
          ^~~~~~
/in/foo.cc:32:10: note:   candidate expects 2 arguments, 0 provided

信息

递交者
类型
递交
题目
P2000 A x B Problem
语言
C++
递交时间
2024-04-21 15:06:13
评测时间
2024-04-21 15:06:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes