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_29470738_22688.cpp: In function 'int sum(int)':
0_0_29470738_22688.cpp:13:2: error: 'nbsp' was not declared in this scope
     typev s = 0;
  ^
0_0_29470738_22688.cpp: In function 'void init()':
0_0_29470738_22688.cpp:22:2: error: 'nbsp' was not declared in this scope
     memset(L, -1, sizeof(L)); memset(R, -1, sizeof(R));
  ^
0_0_29470738_22688.cpp:25:61: error: 'i' was not declared in this scope
         for(int j = i + 1; j <= n && x[j] >= k; j++)
                                                             ^
0_0_29470738_22688.cpp:26:75: error: 'j' was not declared in this scope
             L[j] = i;
                                                                           ^
0_0_29470738_22688.cpp:26:80: error: 'i' was not declared in this scope
             L[j] = i;
                                                                                ^
0_0_29470738_22688.cpp: In function 'int Get(int, int, int)':
0_0_29470738_22688.cpp:33:2: error: 'nbsp' was not declared in this scope
     //printf("l %d r %d %d %dn", l, r, sum(r), sum(l - 1));
  ^
0_0_29470738_22688.cpp: In function 'int main()':
0_0_29470738_22688.cpp:41:2: error: 'nbsp' was not declared in this scope
     int t;scanf("%d", &t);
  ^
0_0_29470738_22688.cpp:49:90: error: 'i' was not declared in this scope
             scanf("%d", &sta[i]);
                                                                                          ^
0_0_29470738_22688.cpp:54:79: error: 'i' was not declared in this scope
             if (x[i] < k) nowans += Get(i + 1, n, !sta[i]);
                                                                               ^
0_0_29470738_22688.cpp:55:73: error: 'else' without a previous 'if'
             else nowans += Get(R[i], n, !sta[i]);
                                                                         ^
0_0_29470738_22688.cpp:55:94: error: 'i' was not declared in this scope
             else nowans += Get(R[i], n, !sta[i]);
                                                                                              ^
0_0_29470738_22688.cpp:61:73: error: 'else' without a previous 'if'
             else
                                                                         ^
0_0_29470738_22688.cpp:70:98: error: 'else' without a previous 'if'
                 }else
                                                                                                  ^
0_0_29470738_22688.cpp:76:97: error: 'else' without a previous 'if'
                 else add(i, -1), sta[i] = 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-26 04:33:09, Gzip enabled