Problem panslate
User andikawahyudi
Submission Time 2026-06-22 16:59:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

panslate.cpp:13:29: error: ‘string’ does not name a type
13 | long long convertbase(const string& X, int N) {
| ^~~~~~
panslate.cpp: In function ‘long long int convertbase(const int&, int)’:
panslate.cpp:16:20: error: request for member ‘length’ in ‘X’, which is of non-class type ‘const int’
16 | for (int i = X.length() - 1; i >= 0; --i) {
| ^~~~~~
panslate.cpp:17:29: error: invalid types ‘const int[int]’ for array subscript
17 | val += charToInt(X[i]) * multiplier;
| ^
panslate.cpp:17:16: error: ‘charToInt’ was not declared in this scope
17 | val += charToInt(X[i]) * multiplier;
| ^~~~~~~~~
panslate.cpp: At global scope:
panslate.cpp:23:1: error: ‘string’ does not name a type
23 | string convertdec(long long val, int B) {
| ^~~~~~
panslate.cpp: In function ‘int main()’:
pansla