제출 #1325035

#제출 시각아이디문제언어결과실행 시간메모리
1325035kasamchiJelly Flavours (IOI20_jelly)C++20
컴파일 에러
0 ms0 KiB
#include "jelly.h"
#include <bits/stdc++.h>
using namespace std;

int find_maximum_unique(int x, int y, vector<int> a, vector<int> b) {
	int n = s.size();

	sort(a.begin(), a.end());
	int ans = 0;
	for (int i = 0; i < n && x >= a[i]; i++) {
		x -= a[i], ans++;
	}
	return min(n, ans + y / b[0]);
}

컴파일 시 표준 에러 (stderr) 메시지

jelly.cpp: In function 'int find_maximum_unique(int, int, std::vector<int>, std::vector<int>)':
jelly.cpp:6:17: error: 's' was not declared in this scope
    6 |         int n = s.size();
      |                 ^