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_30689181_2989.cpp: In function 'int sch(int, int)':
0_0_30689181_2989.cpp:15:29: error: 'n' was not declared in this scope
         while(rr+d1[k][0] < n && rr+d1[k][0] >= 0 && cc+d1[k][1] < n && cc+d1[k][1]>=0 && s[rr+d1[k][0]][cc+d1[k][1]] == '.') {
                             ^
0_0_30689181_2989.cpp:15:91: error: 's' was not declared in this scope
         while(rr+d1[k][0] < n && rr+d1[k][0] >= 0 && cc+d1[k][1] < n && cc+d1[k][1]>=0 && s[rr+d1[k][0]][cc+d1[k][1]] == '.') {
                                                                                           ^
0_0_30689181_2989.cpp:22:29: error: 'n' was not declared in this scope
         while(rr+d2[k][0] < n && rr+d2[k][0] >= 0 && cc+d2[k][1] < n && cc+d2[k][1]>=0 && s[rr+d2[k][0]][cc+d2[k][1]] == '.') {
                             ^
0_0_30689181_2989.cpp:22:91: error: 's' was not declared in this scope
         while(rr+d2[k][0] < n && rr+d2[k][0] >= 0 && cc+d2[k][1] < n && cc+d2[k][1]>=0 && s[rr+d2[k][0]][cc+d2[k][1]] == '.') {
                                                                                           ^
0_0_30689181_2989.cpp:27:25: error: 'max' was not declared in this scope
         mx = max(mx, sum);
                         ^
0_0_30689181_2989.cpp: In function 'int main()':
0_0_30689181_2989.cpp:36:24: error: 'n' was not declared in this scope
     while(scanf("%d", &n), n) {
                        ^
0_0_30689181_2989.cpp:36:25: error: 'scanf' was not declared in this scope
     while(scanf("%d", &n), n) {
                         ^
0_0_30689181_2989.cpp:40:25: error: 's' was not declared in this scope
             scanf("%s", s[i]);
                         ^
0_0_30689181_2989.cpp:44:20: error: 's' was not declared in this scope
                 if(s[i][j] == '.') {
                    ^
0_0_30689181_2989.cpp:45:43: error: 'max' was not declared in this scope
                     mx = max(mx, sch(i, j));
                                           ^
0_0_30689181_2989.cpp:49:26: error: 'printf' was not declared in this scope
         printf("%d\n", mx);
                          ^


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-06-26 10:35:20, Gzip enabled