F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-10-06 12:24:02, Gzip enabled