Submission #1035370

#TimeUsernameProblemLanguageResultExecution timeMemory
1035370MarwenElarbiFriend (IOI14_friend)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "friend.h" using namespace std; int findSample(int n,int confidence[],int host[],int protocol[]){ ll ans=0; for (int i = 0; i < n; ++i) { ans+=confidence[i]; } return ans; }

Compilation message (stderr)

friend.cpp: In function 'int findSample(int, int*, int*, int*)':
friend.cpp:6:5: error: 'll' was not declared in this scope
    6 |     ll ans=0;
      |     ^~
friend.cpp:9:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |         ans+=confidence[i];
      |         ^~~
      |         abs
friend.cpp:11:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     return ans;
      |            ^~~
      |            abs