Submission #151207

#TimeUsernameProblemLanguageResultExecution timeMemory
151207nekiLost in the cycle (IOI19_cycle)C++14
Compilation error
0 ms0 KiB
#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 (stderr)

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
   }
   ^