답안 #151207

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
151207 2019-09-02T07:59:22 Z neki Lost in the cycle (IOI19_cycle) C++14
컴파일 오류
0 ms 0 KB
#include "cycle.h"
 
void escape(int n) {
  int l=0,r=n-1;
  while(l<r){
    int j=n-(l+r)/2;
    l+=j;r+=j;l%=n;r%=n;
    if(jump(j)) l=0;
    else r=0;
  }
}

Compilation message

cycle.cpp:4:2: error: stray '\302' in program
   int l=0,r=n-1;
  ^
cycle.cpp:4:3: error: stray '\240' in program
   int l=0,r=n-1;
   ^
cycle.cpp:5:2: error: stray '\302' in program
   while(l<r){
  ^
cycle.cpp:5:3: error: stray '\240' in program
   while(l<r){
   ^
cycle.cpp:6:2: error: stray '\302' in program
     int j=n-(l+r)/2;
  ^
cycle.cpp:6:3: error: stray '\240' in program
     int j=n-(l+r)/2;
   ^
cycle.cpp:6:5: error: stray '\302' in program
     int j=n-(l+r)/2;
     ^
cycle.cpp:6:6: error: stray '\240' in program
     int j=n-(l+r)/2;
      ^
cycle.cpp:7:2: error: stray '\302' in program
     l+=j;r+=j;l%=n;r%=n;
  ^
cycle.cpp:7:3: error: stray '\240' in program
     l+=j;r+=j;l%=n;r%=n;
   ^
cycle.cpp:7:5: error: stray '\302' in program
     l+=j;r+=j;l%=n;r%=n;
     ^
cycle.cpp:7:6: error: stray '\240' in program
     l+=j;r+=j;l%=n;r%=n;
      ^
cycle.cpp:8:2: error: stray '\302' in program
     if(jump(j)) l=0;
  ^
cycle.cpp:8:3: error: stray '\240' in program
     if(jump(j)) l=0;
   ^
cycle.cpp:8:5: error: stray '\302' in program
     if(jump(j)) l=0;
     ^
cycle.cpp:8:6: error: stray '\240' in program
     if(jump(j)) l=0;
      ^
cycle.cpp:9:2: error: stray '\302' in program
     else r=0;
  ^
cycle.cpp:9:3: error: stray '\240' in program
     else r=0;
   ^
cycle.cpp:9:5: error: stray '\302' in program
     else r=0;
     ^
cycle.cpp:9:6: error: stray '\240' in program
     else r=0;
      ^
cycle.cpp:10:2: error: stray '\302' in program
   }
  ^
cycle.cpp:10:3: error: stray '\240' in program
   }
   ^