Submission #57409

#TimeUsernameProblemLanguageResultExecution timeMemory
57409red1108먼 별 (KOI16_dist)C++17
Compilation error
0 ms0 KiB
ret=max(ret,dist(st[f(i)],st[f(j+1)])); } return ret; } int main() { ll i; scanf("%lld %lld",&n, &maxday); for(i=1;i<=n;i++) { scanf("%lld %lld %lld %lld", &input[i].xx, &input[i].yy, &input[i].dx, &input[i].dy); } ll l=0, r=maxday, x1, x2,ci=50; while(ci--&&l+1<r) { x1=((ll)2*l+r)/3; x2=((ll)2*r+l)/3; if(maxdis(x1)>maxdis(x2)) l=x1; else r=x2; } ll ans1=maxdis(l),ans2=l; for(i=l+1;i<=r;i++) { if(maxdis(i)<ans1) { ans1=maxdis(i); ans2=i; } }    printf("%lld\n%lld", ans2,ans1);  )

Compilation message (stderr)

dist.cpp:30:2: error: stray '\302' in program
     printf("%lld\n%lld", ans2,ans1);
  ^
dist.cpp:30:3: error: stray '\240' in program
     printf("%lld\n%lld", ans2,ans1);
   ^
dist.cpp:30:5: error: stray '\302' in program
     printf("%lld\n%lld", ans2,ans1);
     ^
dist.cpp:30:6: error: stray '\240' in program
     printf("%lld\n%lld", ans2,ans1);
      ^
dist.cpp:31:2: error: stray '\302' in program
   )
  ^
dist.cpp:31:3: error: stray '\240' in program
   )
   ^
dist.cpp:1:9: error: 'ret' does not name a type
         ret=max(ret,dist(st[f(i)],st[f(j+1)]));
         ^~~
dist.cpp:2:5: error: expected declaration before '}' token
     }
     ^