제출 #963549

#제출 시각아이디문제언어결과실행 시간메모리
963549irmuun로봇 (IOI13_robots)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() int putaway(int A,int B,int T,int X[],int Y[],int W[],int S[]){ if(T==2&&A+B==2){ int w[A+B],s[A+B]; for(int i=0;i<A;i++){ w[i]=X[i]; s[i]=2e9; } for(int i=A;i<A+B;i++){ w[i]=2e9; s[i]=Y[i]; } function <bool(int,int)> check=[&](int i,int j){ if(w[i]>=W[i]&&s[i]>=S[j]) return true; return false; }; if(check(0,1)&&check(1,0)) return 1; if(check(0,0)&&check(1,1)) return 1; if(check(0,1)&&check(0,0)) return 2; if(check(0,1)&&check(1,1)) return 2; return -1; } return -1; }

컴파일 시 표준 에러 (stderr) 메시지

/usr/bin/ld: /tmp/cczohJDW.o: in function `main':
grader.c:(.text.startup+0x1b1): undefined reference to `putaway'
collect2: error: ld returned 1 exit status