제출 #164421

#제출 시각아이디문제언어결과실행 시간메모리
164421LawlietICC (CEOI16_icc)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include “icc.h” using namespace std; typedef pair<int,int> pii; int N; map< pii , bool > hasEdge; void run(int n) { N = n; for(int k = 1 ; k < N ; k++) { bool find = false; int ansA = 0; int ansB = 0; for(int i = 1 ; i <= n && !find ; i++) { for(int j = i + 1 ; j <= n && !find ; j++) { if( hasEdge[ { i , j } ] ) continue; int A[1] = { i }; int B[1] = { j }; int ans = query( 1 , 1 , A , B ); if( ans == 1 ) { find = true; ansA = i; ansB = j; } } hasEdge[ { ansA , ansB } ] = true; setRoad( ansA , ansB ); } } }

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

icc.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include “icc.h”
          ^
icc.cpp: In function 'void run(int)':
icc.cpp:31:15: error: 'query' was not declared in this scope
     int ans = query( 1 , 1 , A , B );
               ^~~~~
icc.cpp:44:4: error: 'setRoad' was not declared in this scope
    setRoad( ansA , ansB );
    ^~~~~~~