运行 ID: 109497

Main.cc:21:2: error: expected initializer before ‘cin’
  cin >> l >> n >> m ;
  ^~~
Main.cc:22:2: error: expected unqualified-id before ‘for’
  for ( int i = 1 ; i <= n ; i ++ )
  ^~~
Main.cc:22:20: error: ‘i’ does not name a type
  for ( int i = 1 ; i <= n ; i ++ )
                    ^
Main.cc:22:29: error: ‘i’ does not name a type
  for ( int i = 1 ; i <= n ; i ++ )
                             ^
Main.cc:26:2: error: ‘a’ does not name a type
  a [n + 1] = l ;
  ^
Main.cc:27:6: error: redefinition of ‘int ub’
  int ub = l + 1 ;
      ^~
Main.cc:3:35: note: ‘int ub’ previously declared here
 int a [114514] , l , n , m , lb , ub ;
                                   ^~
Main.cc:28:2: error: expected unqualified-id before ‘while’
  while ( ub > lb )
  ^~~~~
Main.cc:40:2: error: ‘cout’ does not name a type
  cout << lb << endl ;
  ^~~~
Main.cc:41:2: error: expected unqualified-id before ‘return’
  return 0 ;
  ^~~~~~
Main.cc:42:1: error: expected declaration before ‘}’ token
 }
 ^