제출 #1211434

#제출 시각아이디문제언어결과실행 시간메모리
1211434sula2상형문자열 (IOI24_hieroglyphs)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #define all(a) a.begin(), a.end() #define popcount(x) __builtin_popcountll(x) using namespace std; using namespace chrono; vector<int> ucs(vector<int> A, vector<int> B) { for (int i = 0; i < A.size(); i++) if (A[i] != B[i]) { return {}; } return A; } int main() { vector<int> W = {7, 3, 5, 1, 9}; vector<int> A = {5, 4, 5, 6, 3}; vector<int> B = {1, 2, 2, 3, 2}; vector<int> E = {2, 3, 1}; for (auto x : calculate_costs(W, A, B, E)) cout << x << "\n"; }

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

hieroglyphs.cpp: In function 'int main()':
hieroglyphs.cpp:19:19: error: 'calculate_costs' was not declared in this scope
   19 |     for (auto x : calculate_costs(W, A, B, E)) cout << x << "\n";
      |                   ^~~~~~~~~~~~~~~