Submission #1013719

#TimeUsernameProblemLanguageResultExecution timeMemory
1013719bachhoangxuanRobot Contest (IOI23_robot)C++17
16 / 100
100 ms5628 KiB
#include "robot.h" #include<bits/stdc++.h> using namespace std; void program_pulibot() { for(int a=-2;a<=1;a++) for(int b=-2;b<=1;b++) for(int c=-2;c<=1;c++) for(int d=-2;d<=1;d++){ char s; if(b==-2 && c==-2) s='T'; else if(c==0) s='E'; else if(b==0) s='S'; else if(d==0) s='N'; set_instruction({0,a,b,c,d},1,s); } }

Compilation message (stderr)

robot.cpp: In function 'void program_pulibot()':
robot.cpp:13:24: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
   13 |         set_instruction({0,a,b,c,d},1,s);
      |         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...