QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#557044#5708. Hungry FoxkheiramihoubCompile Error//C++14775b2024-09-11 01:07:182024-09-11 01:07:18

Details

answer.code: In function ‘int max_taste(int, int, const std::vector<int>&)’:
answer.code:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
   20 | }
      | ^
answer.code: In function ‘int main()’:
answer.code:29:22: error: too few arguments to function ‘int min_taste(int, int, const std::vector<int>&)’
   29 |     cout << min_taste(N,W) << " " << max_taste(N,W) << endl;
      |             ~~~~~~~~~^~~~~
answer.code:6:5: note: declared here
    6 | int min_taste(int N , int W, const vi& T){
      |     ^~~~~~~~~
answer.code:29:47: error: too few arguments to function ‘int max_taste(int, int, const std::vector<int>&)’
   29 |     cout << min_taste(N,W) << " " << max_taste(N,W) << endl;
      |                                      ~~~~~~~~~^~~~~
answer.code:16:5: note: declared here
   16 | int max_taste(int N , int W, const vi& T){
      |     ^~~~~~~~~