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_26186552_153.cpp: In function 'int main(int, const char**)':
0_0_26186552_153.cpp:7:6: error: expected unqualified-id before 'this'
  int this = 0, max = 0;
      ^
0_0_26186552_153.cpp:19:4: error: invalid use of 'this' in non-member function
    this += p[j];
    ^
0_0_26186552_153.cpp:20:7: error: invalid use of 'this' in non-member function
    if(this > max)
       ^
0_0_26186552_153.cpp:20:14: error: 'max' was not declared in this scope
    if(this > max)
              ^
0_0_26186552_153.cpp:22:11: error: invalid use of 'this' in non-member function
     max = this;
           ^
0_0_26186552_153.cpp:26:12: error: invalid use of 'this' in non-member function
    else if(this < 0)
            ^
0_0_26186552_153.cpp:28:5: error: invalid use of 'this' in non-member function
     this = 0;
     ^
0_0_26186552_153.cpp:33:36: error: 'max' was not declared in this scope
   printf("Case %d :\n%d %d %d\n",i,max,first,end);
                                    ^


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-29 17:37:56, Gzip enabled