제출 #614992

#제출 시각아이디문제언어결과실행 시간메모리
614992cheissmart친구 (IOI14_friend)C++14
컴파일 에러
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;
}

컴파일 시 표준 에러 (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