Problem | unluckyfloors |
---|---|
User | red24 |
Submission Time | 2023-01-24 22:34:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
unluckyfloors.cpp: In function ‘long long int get(long long int)’:
unluckyfloors.cpp:82:4: error: ‘dp’ was not declared in this scope; did you mean ‘dpn’?
82 | dp[i][m[c]][0] += sum[i-1][0] + (c < digit[i] ? sum[i-1][1] : 0);
| ^~
| dpn
unluckyfloors.cpp:82:22: error: ‘sum’ was not declared in this scope; did you mean ‘sumn’?
82 | dp[i][m[c]][0] += sum[i-1][0] + (c < digit[i] ? sum[i-1][1] : 0);
| ^~~
| sumn
unluckyfloors.cpp:89:3: error: ‘sum’ was not declared in this scope; did you mean ‘sumn’?
89 | sum[i][0] += 7*sum[i-1][0] + (max(0LL, digit[i]-(3<digit[i])-(1<digit[i])-(4<digit[i]))*sum[i-1][1]);
| ^~~
| sumn
unluckyfloors.cpp:93:9: error: ‘sum’ was not declared in this scope; did you mean ‘sumn’?
93 | return sum[to_string(n).size()][1] + sum[to_string(n).size()][0] - 1;
| ^~~
| sumn<