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_39435482_26604.cpp: In function 'int main()':
0_0_39435482_26604.cpp:11:25: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'strlen'
   11 |         for(int i=0;i<x.strlen();i++){
      |                         ^~~~~~
0_0_39435482_26604.cpp:12:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |             if(x[i]=="H"){
0_0_39435482_26604.cpp:15:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |             else if(x[i]=="O"){
0_0_39435482_26604.cpp:18:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |             else if(x[i]=="C"){


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-11-26 22:05:56, Gzip enabled