제출 #294439

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
2944392020-09-08 23:04:35zoooma13자리 배치 (IOI18_seats)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "seats.h"
#include "grader.cpp"
using namespace std;
#define MAX_N 1000006
#define pii pair<int ,int>
#define mxp first
#define mip second
#define FL p<<1
#define FR p<<1|1
int n;
int h ,w ,ans;
vector <int> cor[2] ,sat;
void give_initial_chart(int H, int W, vector<int> R, vector<int> C) {
n = R.size();
h = H;
w = W;
sat.resize(n);
cor[0] = R;
cor[1] = C;
int mxR = 0 ,miR = H;
int mxC = 0 ,miC = W;
for(int i=0; i<R.size(); i++){
mxR = max(mxR ,R[i]);
miR = min(miR ,R[i]);
mxC = max(mxC ,C[i]);
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

seats.cpp: In function 'void give_initial_chart(int, int, std::vector<int>, std::vector<int>)':
seats.cpp:27:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |     for(int i=0; i<R.size(); i++){
      |                  ~^~~~~~~~~
/tmp/ccmuesjJ.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cchuftlL.o:seats.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status