제출 #1067126

#제출 시각아이디문제언어결과실행 시간메모리
10671260npataTiles (BOI24_tiles)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; #define int long long #define vec vector const int INF = 1e17; int32_t main() { int n, m; cin >> n >> m; int l = INF, r = -INF, u = -INF, d = INF; for(int i = 0; i<n; i++) { int x, y; cin >> x >> y; l = min(l, x); r = max(r, x); u = max(u, y); d = min(d, y); } if((u-d)%2) { cout << l << '\n'; return; } cout << (r)-((r-l)%2) << '\n'; }

컴파일 시 표준 에러 (stderr) 메시지

Main.cpp: In function 'int32_t main()':
Main.cpp:25:3: error: return-statement with no value, in function returning 'int32_t' {aka 'int'} [-fpermissive]
   25 |   return;
      |   ^~~~~~