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_21418674_5093.cpp: In function 'll cal(int, int)':
0_0_21418674_5093.cpp:10:13: error: 'color' was not declared in this scope
     int c = color[x][y], L = 1, R = m;
             ^
0_0_21418674_5093.cpp:14:41: error: 'L' was not declared in this scope
         for (int j = y - 1; j >= max(1, L); j--) {
                                         ^
0_0_21418674_5093.cpp:18:9: error: 'L' was not declared in this scope
         L = max(L, l);
         ^
0_0_21418674_5093.cpp:20:57: error: 'R' was not declared in this scope
             res += (ll)(n - x + 1LL) * (y - L + 1LL) * (R - y + 1LL);
                                                         ^
0_0_21418674_5093.cpp:23:41: error: 'R' was not declared in this scope
         for (int j = y + 1; j <= min(m, R); j++) {
                                         ^
0_0_21418674_5093.cpp:27:9: error: 'R' was not declared in this scope
         R = min(R, r);
         ^


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 05:36:35, Gzip enabled