Submission #509741

# Submission time Handle Problem Language Result Execution time Memory
509741 2022-01-14T09:10:14 Z Salama Split (info1cup19_split) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
int main ()
  {
  string d; cin >>d; for(long long o=0;o<d.size()/2;o++) { cout <<d[o];}
  cout <<" "; for(long long o=d.size()/2;o<d.size();o++)cout <<d[o];
  return 0;
  }

Compilation message

split.cpp:4:2: error: extended character   is not valid in an identifier
    4 |   {
      |  ^
split.cpp:5:2: error: extended character   is not valid in an identifier
    5 |   string d; cin >>d; for(long long o=0;o<d.size()/2;o++) { cout <<d[o];}
      |  ^
split.cpp:6:2: error: extended character   is not valid in an identifier
    6 |   cout <<" "; for(long long o=d.size()/2;o<d.size();o++)cout <<d[o];
      |  ^
split.cpp:7:2: error: extended character   is not valid in an identifier
    7 |   return 0;
      |  ^
split.cpp:8:2: error: extended character   is not valid in an identifier
    8 |   }
      |  ^
split.cpp:4:2: error: expected initializer before '\U000000a0'
    4 |   {
      |  ^