Submission #60046

# Submission time Handle Problem Language Result Execution time Memory
60046 2018-07-23T13:51:59 Z theknife2001 Parrots (IOI11_parrots) C++17
Compilation error
0 ms 0 KB
#include "encoder.h"
#include "encoderlib.h"
 
 
void encode(int N, int M[])
{
    int s=0;
    int a,b,c;
    for(int i=0;i<N;i++)
    {
        int temp=M[i];
        a=temp%10;
        temp/=10;
        b=temp%10;
        temp/=10;
        c=temp%10;
        temp/=10;
        send(s+c);
        s+=10;
        send(s+b);
        s+=10;
        send(s+a);
        s+=10;
    }
}
#include "decoder.h"
#include "decoderlib.h"
#include <bits/stdc++.h>
 
using namespace std;
 
void decode(int N, int L, int X[])
{
    sort(X,X+L);
    int x=0;
    for(int i=0;i<L;i+=3)
    {
        x=0;
        for(int j=i;j<i+3;j++)
        {
            x*=10;
            x+=X[j]%10;
        }
        output(x);
    }
}

Compilation message

encoder.cpp:19:2: error: stray '\302' in program
         s+=10;
  ^
encoder.cpp:19:3: error: stray '\240' in program
         s+=10;
   ^
encoder.cpp:19:5: error: stray '\302' in program
         s+=10;
     ^
encoder.cpp:19:6: error: stray '\240' in program
         s+=10;
      ^
encoder.cpp:19:8: error: stray '\302' in program
         s+=10;
        ^
encoder.cpp:19:9: error: stray '\240' in program
         s+=10;
         ^
encoder.cpp:19:11: error: stray '\302' in program
         s+=10;
           ^
encoder.cpp:19:12: error: stray '\240' in program
         s+=10;
            ^
encoder.cpp:20:2: error: stray '\302' in program
         send(s+b);
  ^
encoder.cpp:20:3: error: stray '\240' in program
         send(s+b);
   ^
encoder.cpp:20:5: error: stray '\302' in program
         send(s+b);
     ^
encoder.cpp:20:6: error: stray '\240' in program
         send(s+b);
      ^
encoder.cpp:20:8: error: stray '\302' in program
         send(s+b);
        ^
encoder.cpp:20:9: error: stray '\240' in program
         send(s+b);
         ^
encoder.cpp:20:11: error: stray '\302' in program
         send(s+b);
           ^
encoder.cpp:20:12: error: stray '\240' in program
         send(s+b);
            ^
encoder.cpp:21:2: error: stray '\302' in program
         s+=10;
  ^
encoder.cpp:21:3: error: stray '\240' in program
         s+=10;
   ^
encoder.cpp:21:5: error: stray '\302' in program
         s+=10;
     ^
encoder.cpp:21:6: error: stray '\240' in program
         s+=10;
      ^
encoder.cpp:21:8: error: stray '\302' in program
         s+=10;
        ^
encoder.cpp:21:9: error: stray '\240' in program
         s+=10;
         ^
encoder.cpp:21:11: error: stray '\302' in program
         s+=10;
           ^
encoder.cpp:21:12: error: stray '\240' in program
         s+=10;
            ^
encoder.cpp:22:2: error: stray '\302' in program
         send(s+a);
  ^
encoder.cpp:22:3: error: stray '\240' in program
         send(s+a);
   ^
encoder.cpp:22:5: error: stray '\302' in program
         send(s+a);
     ^
encoder.cpp:22:6: error: stray '\240' in program
         send(s+a);
      ^
encoder.cpp:22:8: error: stray '\302' in program
         send(s+a);
        ^
encoder.cpp:22:9: error: stray '\240' in program
         send(s+a);
         ^
encoder.cpp:22:11: error: stray '\302' in program
         send(s+a);
           ^
encoder.cpp:22:12: error: stray '\240' in program
         send(s+a);
            ^