Submission #961061

#TimeUsernameProblemLanguageResultExecution timeMemory
961061PagodePaivaNewspapers (CEOI21_newspapers)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

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=){
      |                              ^