Submission #1214436

#TimeUsernameProblemLanguageResultExecution timeMemory
1214436aykhnNewspapers (CEOI21_newspapers)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define int long long const int MXN = 1e6 + 5; const int LOG = 20; signed main() { ios_base::sync_with_stdio(0); cin.tie(0); int n, m; cin >> n >> m; if (m > n - 1) { cout << "NO\n"; return; } cout << "YES\n0\n"; }

Compilation message (stderr)

newspapers.cpp: In function 'int main()':
newspapers.cpp:19:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |     return;
      |     ^~~~~~