답안 #667837

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
667837 2022-12-02T06:38:17 Z coding_snorlax Vision Program (IOI19_vision) C++14
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
#include "vision.h"
using namespace std;
void construct_network(int H,int W,int K){
    int Total=max(H,W);
    vector<int> s={0,K};
    for(int i=0;i<=Total-K){
        add_and(s);
        s[0]++;
        s[1]++;
    }
    vector<int> s1;
    for(int i=Total,i<Total+Total-K){
        s1.push_back(i);
    }
    add_or(s1);
    return;
}

Compilation message

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:7:27: error: expected ';' before ')' token
    7 |     for(int i=0;i<=Total-K){
      |                           ^
      |                           ;
vision.cpp:13:22: error: expected ';' before '<' token
   13 |     for(int i=Total,i<Total+Total-K){
      |                      ^
      |                      ;
vision.cpp:13:22: error: expected primary-expression before '<' token
vision.cpp:13:36: error: expected ';' before ')' token
   13 |     for(int i=Total,i<Total+Total-K){
      |                                    ^
      |                                    ;