Submission #614992

#TimeUsernameProblemLanguageResultExecution timeMemory
614992cheissmartFriend (IOI14_friend)C++14
Compilation error
0 ms0 KiB
#include "friend.h" #include <bits/stdc++.h> #define F first #define S second #define V vector #define PB push_back #define EB emplace_back #define MP make_pair #define SZ(v) int((v).size()) #define ALL(v) (v).begin(), (v).end() using namespace std; typedef long long ll; typedef pair<int, int> pi; typedef V<int> vi; const int INF = 1e9 + 7; int findSample(int n, int a[], int host[], int op[]) { int mx = 0; for(int i = 0; i < n; i++) mx = max(mx, a[i]); return ans; }

Compilation message (stderr)

friend.cpp: In function 'int findSample(int, int*, int*, int*)':
friend.cpp:24:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |  return ans;
      |         ^~~
      |         abs