Submission #1036695

#TimeUsernameProblemLanguageResultExecution timeMemory
1036695ereringRobot Contest (IOI23_robot)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define endl '\n'
//#define int long long
const int N=2e5+1,MOD=1e9,inf=2e18;
void set_instruction(int[] S, int Z, char A){

}
void program_pulibot(){//crnt,west,south,east,north  -2=boundary -1=obstacle
    set_instructions([0,1,0,0,-2],1,'E');
    set_instructions([0,-2,0,0,-2],1,'E');
    set_instructions([0,0,0,-2,1],1,'S');
    set_instructions([0,0,0,-2,-2],1,'S');
   /* set_instructions([0,-2,-1,0,-2],1,'E');
    set_instructions([0,-2,0,0,-2],1,'E');
    set_instructions([0,-2,0,-2,-2],1,'S');
    set_instructions([0,1,-1,0,-2],1,'E');
    set_instructions([0,1,0,0,-2],1,'E');
    set_instructions([0,1,0,-1,-2],1,'S');
    set*/
}

Compilation message (stderr)

robot.cpp:6:31: warning: overflow in conversion from 'double' to 'int' changes value from '2.0e+18' to '2147483647' [-Woverflow]
    6 | const int N=2e5+1,MOD=1e9,inf=2e18;
      |                               ^~~~
robot.cpp:7:28: error: expected ',' or '...' before 'S'
    7 | void set_instruction(int[] S, int Z, char A){
      |                            ^
robot.cpp: In function 'void program_pulibot()':
robot.cpp:11:23: error: expected identifier before numeric constant
   11 |     set_instructions([0,1,0,0,-2],1,'E');
      |                       ^
robot.cpp:11:24: error: expected ']' before ',' token
   11 |     set_instructions([0,1,0,0,-2],1,'E');
      |                        ^
      |                        ]
robot.cpp: In lambda function:
robot.cpp:11:24: error: expected '{' before ',' token
robot.cpp: In function 'void program_pulibot()':
robot.cpp:11:33: error: expected ')' before ']' token
   11 |     set_instructions([0,1,0,0,-2],1,'E');
      |                     ~           ^
      |                                 )
robot.cpp:12:23: error: expected identifier before numeric constant
   12 |     set_instructions([0,-2,0,0,-2],1,'E');
      |                       ^
robot.cpp:12:24: error: expected ']' before ',' token
   12 |     set_instructions([0,-2,0,0,-2],1,'E');
      |                        ^
      |                        ]
robot.cpp: In lambda function:
robot.cpp:12:24: error: expected '{' before ',' token
robot.cpp: In function 'void program_pulibot()':
robot.cpp:12:34: error: expected ')' before ']' token
   12 |     set_instructions([0,-2,0,0,-2],1,'E');
      |                     ~            ^
      |                                  )
robot.cpp:13:23: error: expected identifier before numeric constant
   13 |     set_instructions([0,0,0,-2,1],1,'S');
      |                       ^
robot.cpp:13:24: error: expected ']' before ',' token
   13 |     set_instructions([0,0,0,-2,1],1,'S');
      |                        ^
      |                        ]
robot.cpp: In lambda function:
robot.cpp:13:24: error: expected '{' before ',' token
robot.cpp: In function 'void program_pulibot()':
robot.cpp:13:33: error: expected ')' before ']' token
   13 |     set_instructions([0,0,0,-2,1],1,'S');
      |                     ~           ^
      |                                 )
robot.cpp:14:23: error: expected identifier before numeric constant
   14 |     set_instructions([0,0,0,-2,-2],1,'S');
      |                       ^
robot.cpp:14:24: error: expected ']' before ',' token
   14 |     set_instructions([0,0,0,-2,-2],1,'S');
      |                        ^
      |                        ]
robot.cpp: In lambda function:
robot.cpp:14:24: error: expected '{' before ',' token
robot.cpp: In function 'void program_pulibot()':
robot.cpp:14:34: error: expected ')' before ']' token
   14 |     set_instructions([0,0,0,-2,-2],1,'S');
      |                     ~            ^
      |                                  )