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_17791174_3570.cpp: In function 'void gauss_jordan(int, int)':
0_0_17791174_3570.cpp:80:7: error: redeclaration of 'int r'
   int r; for (int r = c; r < val; ++r)if (A[r][c])break;
       ^
0_0_17791174_3570.cpp:78:11: note: 'int r' previously declared here
  for (int r = equ - 1; ~r; --r)
           ^
0_0_17791174_3570.cpp:80:23: error: 'c' was not declared in this scope
   int r; for (int r = c; r < val; ++r)if (A[r][c])break;
                       ^
0_0_17791174_3570.cpp:82:39: error: 'ans' was not declared in this scope
   for (int j = r + 1; j < val; ++j)if(ans[j] == -1)ans[j] = 0;
                                       ^
0_0_17791174_3570.cpp:83:17: error: 'c' was not declared in this scope
   int k = inv[A[c][c]];
                 ^


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 15:59:05, Gzip enabled