Submission #1117149

# Submission time Handle Problem Language Result Execution time Memory
1117149 2024-11-22T21:12:31 Z Sofiatpc ICC (CEOI16_icc) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include “icc.h”

using namespace std;

set<pair<int,int>>st;

void run(int n){
    for(int k = 1; k < n; k++){
        int u = 0, v = 0;
        for(int i = 1; i <= n; i++){
            if(u)break;
            for(int j = i+1; j <= n; j++){
                if(st.find({i,j}) != st.end())continue;
                int a[1],b[1];
                a[0] = i; b[0] = j;
                int x = query(1,1,a,b);
                if(x){u = i; v = j; break;}
            }
        }
        st.insert({u,v});
        setRoad(u,v);
    }
}

Compilation message

icc.cpp:3:10: error: extended character “ is not valid in an identifier
    3 | #include “icc.h”
      |          ^
icc.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
    3 | #include “icc.h”
      |          ^~~~
icc.cpp:3:17: error: extended character ” is not valid in an identifier
    3 | #include “icc.h”
      |               ^
icc.cpp: In function 'void run(int)':
icc.cpp:18:25: error: 'query' was not declared in this scope
   18 |                 int x = query(1,1,a,b);
      |                         ^~~~~
icc.cpp:23:9: error: 'setRoad' was not declared in this scope
   23 |         setRoad(u,v);
      |         ^~~~~~~