Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#2 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#3 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#4 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#5 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#6 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#7 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#8 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#9 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#10 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#11 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#12 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#13 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#14 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#15 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#16 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#17 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#18 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#19 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#20 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#21 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#22 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#23 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#24 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#25 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#26 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#27 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#28 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#29 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#30 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#31 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#32 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#33 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
||
#34 |
Error de compilación
main.cpp:1:1: error: unknown type name 'process' process.stdin.on('data', (input) => { ^ main.cpp:1:8: error: cannot use dot operator on a type process.stdin.on('data', (input) => { ^ main.cpp:2:43: warning: empty character constant [-Winvalid-pp-token] let inputArray = input.toString().split('').map(n => Number(n)); ^ main.cpp:13:40: warning: empty character constant [-Winvalid-pp-token] response = [1, ...inputArray].join(''); ^ main.cpp:15:32: warning: empty character constant [-Winvalid-pp-token] response = inputArray.join(''); ^ 3 warnings and 2 errors generated. |
process.stdin.on('data', (input) => { let inputArray = input.toString().split('').map(n => Number(n)); let index = inputArray.length - 1; let current; do { current = inputArray[index] + 1; inputArray[index] = current%10; index--; } while (current > 9 && index >= 0); let response; if (current > 9) { response = [1, ...inputArray].join(''); } else { response = inputArray.join(''); } console.log(response); process.exit(); });