Submission #811757

#TimeUsernameProblemLanguageResultExecution timeMemory
811757enerelt14Newspapers (CEOI21_newspapers)C++14
Compilation error
0 ms0 KiB
#include <algorithm> #include <array> #include <bitset> #include <cassert> #include <chrono> #include <climits> #include <cmath> #include <complex> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <vector> using namespace std; int main() { cin >> n >> m; if(m >= n) { cout << "NO\n"; return 0; } else { cout << "YES\n"; return 0; } for(int i = 0; i < m; i++) { int u, v; cin >> u >> v; adj[u].pb(v); adj[v].pb(u); } }

Compilation message (stderr)

newspapers.cpp: In function 'int main()':
newspapers.cpp:22:9: error: 'n' was not declared in this scope; did you mean 'yn'?
   22 |  cin >> n >> m;
      |         ^
      |         yn
newspapers.cpp:22:14: error: 'm' was not declared in this scope; did you mean 'tm'?
   22 |  cin >> n >> m;
      |              ^
      |              tm
newspapers.cpp:34:3: error: 'adj' was not declared in this scope
   34 |   adj[u].pb(v);
      |   ^~~