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_16968092_16394.cpp: In function 'int main(int, const char**)':
0_0_16968092_16394.cpp:18:10: error: conflicting declaration 'std::string s'
   string s;
          ^
0_0_16968092_16394.cpp:16:8: note: previous declaration as 'char s [1000002]'
   char s[1000002];
        ^
0_0_16968092_16394.cpp:27:25: error: request for member 'size' in 's', which is of non-class type 'char [1000002]'
   for (int j = 1; j < s.size(); ++j)
                         ^
0_0_16968092_16394.cpp:38:14: error: request for member 'size' in 's', which is of non-class type 'char [1000002]'
     res += s.size() - j;
              ^
0_0_16968092_16394.cpp:51:26: error: request for member 'size' in 's', which is of non-class type 'char [1000002]'
    for (int i = 1; i < s.size()&&q-1<s.size(); ++i)
                          ^
0_0_16968092_16394.cpp:51:40: error: request for member 'size' in 's', which is of non-class type 'char [1000002]'
    for (int i = 1; i < s.size()&&q-1<s.size(); ++i)
                                        ^
0_0_16968092_16394.cpp:58:15: error: request for member 'size' in 's', which is of non-class type 'char [1000002]'
      res += s.size() - q;
               ^
0_0_16968092_16394.cpp:66:16: error: request for member 'size' in 's', which is of non-class type 'char [1000002]'
       res += s.size() - q;
                ^


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-06 01:13:02, Gzip enabled