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_20611377_3337.cpp: In function 'int main()':
0_0_20611377_3337.cpp:3:247: error: 'strlen' was not declared in this scope
     using namespace std; char date[1000][1000];char strings[2000]; int main (){     int num;    int i,j;    int len;    int pos=0;    while(cin>>num)    {         pos=0;        for(i=0;i<num;i++)            cin>>date[i];        len=strlen(date[0]);        int flag=0;        for(j=0;j<len;j++)        {             for(i=0;i<num;i++)            {                if(date[i][j]!='_')                    flag=1;                            if(flag==1)                                  {                    strings[pos]=date[i][j];                    pos++;                }            }         }        strings[pos]='\0';        reverse(strings,strings+pos);        for(i=0;i<pos;i++)        {            if(strings[i]=='_')            {                printf(" ");                strings[i]=' ';                continue;            }            else if(strings[i]=='\\')            {                cout<<'\n';                continue;            }            else                 cout<<strings[i];        }        cout<<endl<<endl;    }    return 0;}
                                                                                                                                                                                                                                                       ^


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-23 05:21:07, Gzip enabled