Submission #1066248

#TimeUsernameProblemLanguageResultExecution timeMemory
1066248MardonbekhazratovFriend (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 ans=0; for(int i=0;i<n;i++) ans=max(ans,confidence[i]); return ans; }

Compilation message (stderr)

friend.cpp: In function 'int findSample(int, int*, int*, int*)':
friend.cpp:6:27: error: 'max' was not declared in this scope
    6 |  for(int i=0;i<n;i++) ans=max(ans,confidence[i]);
      |                           ^~~