제출 #112691

#제출 시각아이디문제언어결과실행 시간메모리
112691dolphingarlicGap (APIO16_gap)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "gap.h" #define MAXN 1000000000000000000 using namespace std; typedef long long ll; ll a[100000], j = 0; ll findGap(int T, int N) { if (T == 1) { ll l = 1, r = MAXN; ll mn, mx; vector<ll> v; for (ll i = 0; i < (N + 1) / 2; i++) { MinMax(l, r, &mn, &mx); a[j++] = mn; a[j++] = mx; l = mn + 1, r = mx - 1; } sort(a, a + N); ll ans = 0; for (ll i = 0; i < N - 1; i++) ans = max(ans, a[i + 1] - a[i]); return ans; } else { ll mn, mx; MinMax(1, MAXN, &mn, &mx); ll step = ceil((mx - mn) / (double)(N - 1)); ll ans = step, x, y, l = mn, i;        for (i = mn + 1; i + step < mx; i += step + 1) { MinMax(i, i + step, &x, &y); if (x != -1) { ans = max(ans, x - l); l = y; } } MinMax(i, mx, &x, &y); if (x != -1) ans = max(ans, x - l); return ans; } }

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

gap.cpp:29:2: error: stray '\302' in program
         for (i = mn + 1; i + step < mx; i += step + 1) {
  ^
gap.cpp:29:3: error: stray '\240' in program
         for (i = mn + 1; i + step < mx; i += step + 1) {
   ^
gap.cpp:29:5: error: stray '\302' in program
         for (i = mn + 1; i + step < mx; i += step + 1) {
     ^
gap.cpp:29:6: error: stray '\240' in program
         for (i = mn + 1; i + step < mx; i += step + 1) {
      ^
gap.cpp:29:8: error: stray '\302' in program
         for (i = mn + 1; i + step < mx; i += step + 1) {
        ^
gap.cpp:29:9: error: stray '\240' in program
         for (i = mn + 1; i + step < mx; i += step + 1) {
         ^
gap.cpp:29:11: error: stray '\302' in program
         for (i = mn + 1; i + step < mx; i += step + 1) {
           ^
gap.cpp:29:12: error: stray '\240' in program
         for (i = mn + 1; i + step < mx; i += step + 1) {
            ^