제출 #783754

#제출 시각아이디문제언어결과실행 시간메모리
783754Lyrically저울 (IOI15_scales)C++17
컴파일 에러
0 ms0 KiB
#include "scales.h"
#include <bits/stdc++.h>
using namespace std;

void init(int T) { fprintf(stderr, "play genshin for %d times\n", T); }

void orderCoins() {
    int ans[6];
    for (int i = 0; i < 6; i++) ans[i] = _realC[i] + 1;
    answer(ans);
}

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

scales.cpp: In function 'void orderCoins()':
scales.cpp:9:42: error: '_realC' was not declared in this scope
    9 |     for (int i = 0; i < 6; i++) ans[i] = _realC[i] + 1;
      |                                          ^~~~~~