Submission #815108

#TimeUsernameProblemLanguageResultExecution timeMemory
815108LiudasFriend (IOI14_friend)C++17
Compilation error
0 ms0 KiB
#include "friend.h" #include<algorithm> using namespace std; int findSample(int n,int confidence[],int host[],int protocol[]){ return accumulate(confidence, confidence + n, 0ll); }

Compilation message (stderr)

friend.cpp: In function 'int findSample(int, int*, int*, int*)':
friend.cpp:6:9: error: 'accumulate' was not declared in this scope
    6 |  return accumulate(confidence, confidence + n, 0ll);
      |         ^~~~~~~~~~