Submission #1049332

#TimeUsernameProblemLanguageResultExecution timeMemory
1049332AIF_is_carving로봇 대회 (IOI23_robot)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;
#include "robot.h"
typedef long long ll;

void set_instruction(std::vector<int> S, int Z, char A){

}
void program_pulibot(){


    for(int i = 0; i<=340; i++){
        vector<int> s(5, 0);

        int x = i;
        s[1] = -(x%4) + 1; x/=4;
        s[2] = -(x%4) +1; x/=4;
        s[3] = -(x%4) +1; x/=4;
        s[4] = -(x%4) +1; x/=4;

        // for(auto x: s) cout<<x<<" ";
        //     cout<<"\n";

        if(s[3] == 0) set_instruction(s, 1, 'E');
        else if(s[2]!=0 && s[4] == 0) set_instruction(s, 1, 'N');
        else if(s[2]==0 && s[4] != 0) set_instruction(s, 1, 'S');
        else set_instruction(s, 1, 'T');

    }
    

    return;
}


int main(){

    program_pulibot();
}


Compilation message (stderr)

/usr/bin/ld: /tmp/ccRi76PV.o: in function `set_instruction(std::vector<int, std::allocator<int> >, int, char)':
stub.cpp:(.text+0x70): multiple definition of `set_instruction(std::vector<int, std::allocator<int> >, int, char)'; /tmp/ccFpZYvW.o:robot.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccRi76PV.o: in function `main':
stub.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccFpZYvW.o:robot.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status