0_0_25009116_156.cpp: In function 'int main()':
0_0_25009116_156.cpp:17:8: error: 'charmax' was not declared in this scope
charmax;
^
0_0_25009116_156.cpp:25:11: error: overloaded function with no contextual type information
max=str[0];
^
0_0_25009116_156.cpp:29:21: error: the value of 'str' is not usable in a constant expression
{if(max<str[i])
^
0_0_25009116_156.cpp:19:9: note: 'str' was not declared 'constexpr'
char str[100];
^
0_0_25009116_156.cpp:29:12: error: parse error in template argument list
{if(max<str[i])
^
0_0_25009116_156.cpp:29:22: error: cannot resolve overloaded function 'max' based on conversion to type 'bool'
{if(max<str[i])
^
0_0_25009116_156.cpp:31:11: error: overloaded function with no contextual type information
max=str[i];}
^
0_0_25009116_156.cpp:35:20: error: invalid operands of types 'char' and '<unresolved overloaded function type>' to binary 'operator=='
{if(str[i]==max)cout<<str[i]<<"(max)";
^
|