Submission #676347

#TimeUsernameProblemLanguageResultExecution timeMemory
676347_________Mean (info1cup19_mean)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; int main()  {  int x; cin>>x;  int s,ss;  cin>>ss; for(int o=0;o<x-1;o++){ cin>>s;ss=(s+ss)/2;}  cout<<ss;  return 0; }

Compilation message (stderr)

mean.cpp:4:1: error: extended character   is not valid in an identifier
    4 |  {
      | ^
mean.cpp:5:2: error: extended character   is not valid in an identifier
    5 |   int x; cin>>x;
      |  ^
mean.cpp:6:2: error: extended character   is not valid in an identifier
    6 |   int s,ss;
      |  ^
mean.cpp:7:2: error: extended character   is not valid in an identifier
    7 |   cin>>ss; for(int o=0;o<x-1;o++){ cin>>s;ss=(s+ss)/2;}
      |  ^
mean.cpp:8:2: error: extended character   is not valid in an identifier
    8 |   cout<<ss;  return 0; }
      |  ^
mean.cpp:8:14: error: extended character   is not valid in an identifier
    8 |   cout<<ss;  return 0; }
      |             ^
mean.cpp:4:1: error: expected initializer before '\U000000a0'
    4 |  {
      | ^