Submission #404162

#TimeUsernameProblemLanguageResultExecution timeMemory
404162peuchFriend (IOI14_friend)C++17
Compilation error
0 ms0 KiB
#include "friend.h" // Find out best sample int findSample(int n,int confidence[],int host[],int protocol[]){ int maxi = 0; for(int i = 0; i < n; i++) maxi = max(confidence[i], maxi); return sum; }

Compilation message (stderr)

friend.cpp: In function 'int findSample(int, int*, int*, int*)':
friend.cpp:7:10: error: 'max' was not declared in this scope; did you mean 'maxi'?
    7 |   maxi = max(confidence[i], maxi);
      |          ^~~
      |          maxi
friend.cpp:8:9: error: 'sum' was not declared in this scope
    8 |  return sum;
      |         ^~~