█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 5583

Problema 0xd6 - Camino más corto de la Tortuga en un arreglo circular

  • Autor: pablopvsky
  • Fecha: 2022-01-10 23:57:41 UTC (Hace casi 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#2
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#3
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#4
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#5
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#6
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#7
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#8
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#9
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#10
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#11
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#12
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#13
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#14
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#15
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#16
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#17
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#18
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#19
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#20
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#21
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#22
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#23
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#24
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#25
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#26
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#27
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#28
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#29
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#30
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#31
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#32
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#33
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#34
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#35
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
#36
Error de compilación
                      main.c:1:1: error: unknown type name 'let'
let readline = require("readline");
^
main.c:1:16: warning: implicit declaration of function 'require' is invalid in C99 [-Wimplicit-function-declaration]
let readline = require("readline");
               ^
main.c:3:1: error: unknown type name 'let'
let rightWay;
^
main.c:4:1: error: unknown type name 'let'
let leftWay;
^
main.c:6:1: error: unknown type name 'process'
process.stdin.setEncoding("utf8");
^
main.c:6:8: error: expected identifier or '('
process.stdin.setEncoding("utf8");
       ^
main.c:7:1: error: unknown type name 'let'
let stdin = readline.createInterface({
^
main.c:7:38: error: expected expression
let stdin = readline.createInterface({
                                     ^
main.c:12:1: error: unknown type name 'stdin'
stdin.on("line", readLine);
^
main.c:12:6: error: expected identifier or '('
stdin.on("line", readLine);
     ^
main.c:14:1: error: unknown type name 'function'
function readLine(line) {
^
main.c:15:3: error: use of undeclared identifier 'let'
  let input = line.split(" ");
  ^
main.c:16:3: error: use of undeclared identifier 'let'
  let circleLength = Number(input[0]);
  ^
main.c:17:3: error: use of undeclared identifier 'let'
  let circleCells = new Array(circleLength).fill(0);
  ^
main.c:18:3: error: use of undeclared identifier 'let'
  let position = Number(input[1]);
  ^
main.c:19:3: error: use of undeclared identifier 'let'
  let goal = Number(input[2]);
  ^
main.c:21:18: error: expected expression
  if (position === goal) {
                 ^
main.c:21:7: error: use of undeclared identifier 'position'
  if (position === goal) {
      ^
main.c:21:20: error: use of undeclared identifier 'goal'
  if (position === goal) {
                   ^
main.c:22:5: error: use of undeclared identifier 'console'
    console.log(0);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

                    
Puntos totales: 0 / 100

Código

let readline = require("readline");

let rightWay;
let leftWay;

process.stdin.setEncoding("utf8");
let stdin = readline.createInterface({
  input: process.stdin,
  terminal: false,
});

stdin.on("line", readLine);

function readLine(line) {
  let input = line.split(" ");
  let circleLength = Number(input[0]);
  let circleCells = new Array(circleLength).fill(0);
  let position = Number(input[1]);
  let goal = Number(input[2]);

  if (position === goal) {
    console.log(0);
  }

  if (position < goal) {
    rightWay = circleCells.slice(position, goal).length - 2;
    leftWay =
      circleCells.slice(0, position).length +
      circleCells.slice(goal, circleLength).length;
  } else {
    leftWay = circleCells.slice(goal, position).length;
    rightWay =
      circleCells.slice(0, goal).length +
      circleCells.slice(position, circleLength).length -
      1;
  }

  if (rightWay < leftWay) {
    console.log(rightWay);
  } else {
    console.log(leftWay);
  }
}