Run id: 108037

Main.cc: In function 'int main()':
Main.cc:11:13: error: 'i' was not declared in this scope
     cout<' to binary 'operator>'
   if (a[i] > max) {
              ^
Main.cc:34:7: error: overloaded function with no contextual type information
    max=a[i];
       ^
Main.cc:35:9: error: overloaded function with no contextual type information
    index=i;
         ^
Main.cc:5:9: warning: unused variable 'w' [-Wunused-variable]
     int w;
         ^
Main.cc: At global scope:
Main.cc:40:2: error: 'cout' does not name a type
  cout << count << endl;
  ^
Main.cc:42:2: error: expected unqualified-id before 'for'
  for (int i = 0; i <= n - 1; i++) {
  ^
Main.cc:42:18: error: 'i' does not name a type
  for (int i = 0; i <= n - 1; i++) {
                  ^
Main.cc:42:30: error: 'i' does not name a type
  for (int i = 0; i <= n - 1; i++) {
                              ^
Main.cc:48:12: error: 'a' was not declared in this scope
  int max = a[0] ; //第1个计数器记录最大值本身
            ^
Main.cc:49:6: error: 'int index' redeclared as different kind of symbol
  int index = 0; // 第2个计数器下标
      ^
In file included from /usr/include/c++/5/cstring:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:48,
                 from Main.cc:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
 index (const char *__s, int __c) __THROW
 ^
Main.cc:51:1: error: expected unqualified-id before 'for'
 for(int i=0;i<=n-1;i++){
 ^
Main.cc:51:13: error: 'i' does not name a type
 for(int i=0;i<=n-1;i++){
             ^
Main.cc:51:20: error: 'i' does not name a type
 for(int i=0;i<=n-1;i++){
                    ^
Main.cc:57:2: error: 'maX' does not name a type
  maX=w;
  ^
Main.cc:58:1: error: expected declaration before '}' token
 }
 ^