제출 #1214370

#제출 시각아이디문제언어결과실행 시간메모리
1214370thangdz2k7버섯 세기 (IOI20_mushrooms)C++20
컴파일 에러
0 ms0 KiB
#include "mushrooms.h"
#include "bits/stdc++.h>

using namespace std;

mt19937 rd(chrono::steady_clock::now().time_since_epoch().count());

int count_mushrooms(int n){
    if (n <= 227){
        int cntA = 1;
        for (int i = 1; i < n; ++ i){
            vector <int> ask = {0, i};
            if (use_machine(ask) == 0) cntA ++;
        }
        return cntA;
    }

    return 1;
}

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

mushrooms.cpp:2:10: warning: missing terminating " character
    2 | #include "bits/stdc++.h>
      |          ^
mushrooms.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
    2 | #include "bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
mushrooms.cpp:6:1: error: 'mt19937' does not name a type
    6 | mt19937 rd(chrono::steady_clock::now().time_since_epoch().count());
      | ^~~~~~~