Submission #961061

# Submission time Handle Problem Language Result Execution time Memory
961061 2024-04-11T13:08:58 Z PagodePaiva Newspapers (CEOI21_newspapers) C++17
Compilation error
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=){
      |                              ^