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_13580414_20448.cpp:10:5: error: expected unqualified-id before 'this'
 int this=0;
     ^
0_0_13580414_20448.cpp: In function 'void dfs(char)':
0_0_13580414_20448.cpp:20:15: error: invalid use of 'this' in non-member function
     for(i=0;i<this;i++)
               ^
0_0_13580414_20448.cpp: In function 'int main()':
0_0_13580414_20448.cpp:37:13: error: invalid use of 'this' in non-member function
         all[this].start=str[0];
             ^
0_0_13580414_20448.cpp:38:13: error: invalid use of 'this' in non-member function
         all[this++].end=str[strlen(str)-1];
             ^
0_0_13580414_20448.cpp:43:17: error: invalid use of 'this' in non-member function
             all[this].start=str[0];
                 ^
0_0_13580414_20448.cpp:44:17: error: invalid use of 'this' in non-member function
             all[this++].end=str[strlen(str)-1];
                 ^
0_0_13580414_20448.cpp:51:9: error: invalid use of 'this' in non-member function
         this=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-10-02 15:06:58, Gzip enabled