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_37942679_10300.cpp:9:9: error: expected unqualified-id before 'int'
 int ans,int n;
         ^
0_0_37942679_10300.cpp: In function 'void dfs(int, int, int, int)':
0_0_37942679_10300.cpp:14:11: error: 'n' was not declared in this scope
  if (x == n && y == n) {
           ^
0_0_37942679_10300.cpp:19:10: error: 'n' was not declared in this scope
  if (x < n && t * t > ans)dfs(x + 1, y, Sa + a[x + 1][y], Sb + b[x + 1][y]);
          ^
0_0_37942679_10300.cpp:21:10: error: 'n' was not declared in this scope
  if (y < n && t * t > ans)dfs(x, y + 1, Sa + a[x][y + 1], Sb + b[x][y + 1]);
          ^
0_0_37942679_10300.cpp: In function 'void solve()':
0_0_37942679_10300.cpp:25:9: error: 'n' was not declared in this scope
  cin >> n;
         ^


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-28 22:50:08, Gzip enabled