Submission #614992

# Submission time Handle Problem Language Result Execution time Memory
614992 2022-07-31T06:02:55 Z cheissmart Friend (IOI14_friend) C++14
Compilation error
0 ms 0 KB
#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

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