답안 #961061

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
961061 2024-04-11T13:08:58 Z PagodePaiva Newspapers (CEOI21_newspapers) C++17
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
#define N 1010

using namespace std;

vector <int> g[N];

int main(){
    int n, m;
    cin >> n >> m;
    for(int i = 0;i < m;i++0=){
        int a, b;
        cin >> a >> b;
    }
    if(m == n-1){
        cout << "NO\n";
        return 0;
    }
    cout << "YES\n";
    cout << 1 << endl;
    cout << 1 << endl;
    return 0;
}

Compilation message

newspapers.cpp: In function 'int main()':
newspapers.cpp:11:28: error: expected ')' before numeric constant
   11 |     for(int i = 0;i < m;i++0=){
      |        ~                   ^
      |                            )
newspapers.cpp:11:30: error: expected primary-expression before ')' token
   11 |     for(int i = 0;i < m;i++0=){
      |                              ^