Submission #676347

# Submission time Handle Problem Language Result Execution time Memory
676347 2022-12-30T12:44:57 Z _________ Mean (info1cup19_mean) C++17
Compilation error
0 ms 0 KB
#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

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