Submission #435565

#TimeUsernameProblemLanguageResultExecution timeMemory
435565hossain2020Koala Game (APIO17_koala)C++14
4 / 100
6 ms328 KiB
#include <bits/stdc++.h> #include "koala.h" int minValue(int n, int w) { int query[n]; for (int i = 0; i < n; i++) query[i] = !i; int response[n]; playRound(query, response); for (int i = 0; i < n; i++) if (response[i] <= query[i]) return i; assert(0); } int maxValue(int n, int w) { } int greaterValue(int n, int w) { } void allValues(int n, int w, int *p) { }

Compilation message (stderr)

koala.cpp: In function 'int maxValue(int, int)':
koala.cpp:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
   15 | }
      | ^
koala.cpp: In function 'int greaterValue(int, int)':
koala.cpp:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
   18 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...