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_35350983_11585.cpp:5:1: error: 'LL' does not name a type
 LL MAP[maxn];
 ^
0_0_35350983_11585.cpp: In function 'void add(int, int, int)':
0_0_35350983_11585.cpp:13:5: error: 'MAP' was not declared in this scope
     MAP[v] += x;
     ^
0_0_35350983_11585.cpp: In function 'int main()':
0_0_35350983_11585.cpp:16:20: error: 'Sca2' was not declared in this scope
     while(~Sca2(N,M)){
                    ^
0_0_35350983_11585.cpp:17:22: error: 'read' was not declared in this scope
         int Q = read();
                      ^
0_0_35350983_11585.cpp:18:43: error: 'MAP' was not declared in this scope
         for(int i = 0 ; i <= N * M; i ++) MAP[i] = 0;
                                           ^
0_0_35350983_11585.cpp:21:21: error: 'x2' was not declared in this scope
             if(x1 > x2) swap(x1,x2);
                     ^
0_0_35350983_11585.cpp:22:16: error: 'y1' was not declared in this scope
             if(y1 > y2) swap(y1,y2);
                ^
0_0_35350983_11585.cpp:22:21: error: 'y2' was not declared in this scope
             if(y1 > y2) swap(y1,y2);
                     ^
0_0_35350983_11585.cpp:23:20: error: 'y1' was not declared in this scope
             add(x1,y1,1); 
                    ^
0_0_35350983_11585.cpp:24:20: error: 'y2' was not declared in this scope
             add(x1,y2 + 1,-1);
                    ^
0_0_35350983_11585.cpp:25:17: error: 'x2' was not declared in this scope
             add(x2 + 1,y1,-1);
                 ^
0_0_35350983_11585.cpp:30:17: error: 'MAP' was not declared in this scope
                 MAP[id(i,j)] += MAP[id(i - 1,j)] + MAP[id(i,j - 1)] - MAP[id(i - 1,j - 1)];
                 ^
0_0_35350983_11585.cpp:35:17: error: 'MAP' was not declared in this scope
                 MAP[id(i,j)] = (MAP[id(i,j)] > 0);
                 ^
0_0_35350983_11585.cpp:40:17: error: 'MAP' was not declared in this scope
                 MAP[id(i,j)] += MAP[id(i - 1,j)] + MAP[id(i,j - 1)] - MAP[id(i - 1,j - 1)];
                 ^
0_0_35350983_11585.cpp:46:21: error: 'x2' was not declared in this scope
             if(x1 > x2) swap(x1,x2);
                     ^
0_0_35350983_11585.cpp:47:16: error: 'y1' was not declared in this scope
             if(y1 > y2) swap(y1,y2);
                ^
0_0_35350983_11585.cpp:47:21: error: 'y2' was not declared in this scope
             if(y1 > y2) swap(y1,y2);
                     ^
0_0_35350983_11585.cpp:48:23: error: 'x2' was not declared in this scope
             if(1ll * (x2 - x1 + 1) * (y2 - y1 + 1) == MAP[id(x2,y2)] + MAP[id(x1 - 1,y1 - 1)] - MAP[id(x2,y1 - 1)] - MAP[id(x1 - 1,y2)])
                       ^
0_0_35350983_11585.cpp:48:39: error: 'y2' was not declared in this scope
             if(1ll * (x2 - x1 + 1) * (y2 - y1 + 1) == MAP[id(x2,y2)] + MAP[id(x1 - 1,y1 - 1)] - MAP[id(x2,y1 - 1)] - MAP[id(x1 - 1,y2)])
                                       ^
0_0_35350983_11585.cpp:48:44: error: 'y1' was not declared in this scope
             if(1ll * (x2 - x1 + 1) * (y2 - y1 + 1) == MAP[id(x2,y2)] + MAP[id(x1 - 1,y1 - 1)] - MAP[id(x2,y1 - 1)] - MAP[id(x1 - 1,y2)])
                                            ^
0_0_35350983_11585.cpp:48:55: error: 'MAP' was not declared in this scope
             if(1ll * (x2 - x1 + 1) * (y2 - y1 + 1) == MAP[id(x2,y2)] + MAP[id(x1 - 1,y1 - 1)] - MAP[id(x2,y1 - 1)] - MAP[id(x1 - 1,y2)])
                                                       ^


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 19:50:33, Gzip enabled