Submission #735728

#TimeUsernameProblemLanguageResultExecution timeMemory
735728myrcellaFriend (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; rep(i,0,n) ans += confidence[i]; return ans; }

Compilation message (stderr)

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