Submission #854027

#TimeUsernameProblemLanguageResultExecution timeMemory
854027LoboWeird Numeral System (CCO21_day1problem2)C++17
Compilation error
0 ms0 KiB
int i = 0; while((i == 0 || dp[i].count(0) == 0) && dp[i].size() != 0) { for(auto X : dp[i]) { int nn = X.fr; for(auto x : a) { if((x%k+k)%k == (nn%k+k)%k) { dp[i+1][(nn-x)/k] = x; } } } i++; }

Compilation message (stderr)

Main.cpp:2:9: error: expected unqualified-id before 'while'
    2 |         while((i == 0 || dp[i].count(0) == 0) && dp[i].size() != 0) {
      |         ^~~~~