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_24482644_20463.cpp:1:1: error: stray '##' in program
 ##include<iostream>
 ^
0_0_24482644_20463.cpp:2:1: error: stray '##' in program
 ##include<string>
 ^
0_0_24482644_20463.cpp:3:1: error: stray '##' in program
 ##include<iomanip>
 ^
0_0_24482644_20463.cpp:1:3: error: 'include' does not name a type
 ##include<iostream>
   ^
0_0_24482644_20463.cpp:7:1: error: 'string' does not name a type
 string text[105],command,lastreplace,repla,replaceby;
 ^
0_0_24482644_20463.cpp:9:26: error: 'string' has not been declared
 void reget(int &s,int &e,string str)
                          ^
0_0_24482644_20463.cpp: In function 'void reget(int&, int&, int)':
0_0_24482644_20463.cpp:11:11: error: request for member 'find' in 'str', which is of non-class type 'int'
 int p=str.find(',');
           ^
0_0_24482644_20463.cpp:16:9: error: invalid types 'int[int]' for array subscript
 s+=str[i]-'0';
         ^
0_0_24482644_20463.cpp:18:21: error: request for member 'length' in 'str', which is of non-class type 'int'
 for(int i=p+1;i<str.length();i++)
                     ^
0_0_24482644_20463.cpp:21:9: error: invalid types 'int[int]' for array subscript
 e+=str[i]-'0';
         ^
0_0_24482644_20463.cpp: In function 'int main()':
0_0_24482644_20463.cpp:26:1: error: 'cin' was not declared in this scope
 cin>>n;
 ^
0_0_24482644_20463.cpp:30:13: error: 'text' was not declared in this scope
 getline(cin,text[i]);
             ^
0_0_24482644_20463.cpp:30:20: error: 'getline' was not declared in this scope
 getline(cin,text[i]);
                    ^
0_0_24482644_20463.cpp:31:1: error: 'lastreplace' was not declared in this scope
 lastreplace="";
 ^
0_0_24482644_20463.cpp:33:19: error: 'command' was not declared in this scope
 while(getline(cin,command))
                   ^
0_0_24482644_20463.cpp:33:26: error: 'getline' was not declared in this scope
 while(getline(cin,command))
                          ^
0_0_24482644_20463.cpp:35:11: error: 'cout' was not declared in this scope
 if (flag) cout<<endl;
           ^
0_0_24482644_20463.cpp:35:17: error: 'endl' was not declared in this scope
 if (flag) cout<<endl;
                 ^
0_0_24482644_20463.cpp:51:1: error: 'repla' was not declared in this scope
 repla=command.substr(p1+1,p2-p1-1);
 ^
0_0_24482644_20463.cpp:52:1: error: 'replaceby' was not declared in this scope
 replaceby=command.substr(p2+1,p3-p2-1);
 ^
0_0_24482644_20463.cpp:60:7: error: 'text' was not declared in this scope
 int p=text[i].find(repla,0);
       ^
0_0_24482644_20463.cpp:64:24: error: 'reby_len' was not declared in this scope
 p=text[i].find(repla,p+reby_len);
                        ^
0_0_24482644_20463.cpp:68:7: error: 'cout' was not declared in this scope
 if(c) cout<<setw(4)<<i<<"  "<<text[i]<<endl;
       ^
0_0_24482644_20463.cpp:68:19: error: 'setw' was not declared in this scope
 if(c) cout<<setw(4)<<i<<"  "<<text[i]<<endl;
                   ^
0_0_24482644_20463.cpp:68:40: error: 'endl' was not declared in this scope
 if(c) cout<<setw(4)<<i<<"  "<<text[i]<<endl;
                                        ^
0_0_24482644_20463.cpp:70:42: error: 'printf' was not declared in this scope
 if(!changed) printf("Pattern not found\n");
                                          ^


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-07-01 10:56:37, Gzip enabled