Submission #1214370

#TimeUsernameProblemLanguageResultExecution timeMemory
1214370thangdz2k7Counting Mushrooms (IOI20_mushrooms)C++20
Compilation error
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; }

Compilation message (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());
      | ^~~~~~~