Run id: 157855

Main.cc: In function 'int main()':
Main.cc:6:16: error: invalid types 'char[int]' for array subscript
     int max=n[0]-'0';
                ^
Main.cc:8:19: error: 'strlen' was not declared in this scope
     int a=strlen(n);
                   ^
Main.cc:11:15: error: invalid types 'char[int]' for array subscript
         if(n[i]=='.')
               ^
Main.cc:15:15: error: invalid types 'char[int]' for array subscript
         if(n[i]-'0'>max)
               ^
Main.cc:17:20: error: invalid types 'int[int]' for array subscript
             max=a[i]-'0';
                    ^