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_22157675_25066.cpp: In function 'void Gauss()':
0_0_22157675_25066.cpp:18:12: error: 'm' was not declared in this scope
  int cnt = m * n,now = 1;
            ^
0_0_22157675_25066.cpp:18:16: error: 'n' was not declared in this scope
  int cnt = m * n,now = 1;
                ^
0_0_22157675_25066.cpp:20:15: error: 'now' was not declared in this scope
   for(int j = now + 1; j <= cnt; ++j)
               ^
0_0_22157675_25066.cpp:24:11: error: 'now' was not declared in this scope
   if(!arr[now][i]) {
           ^
0_0_22157675_25066.cpp:28:34: error: invalid types 'bool[int]' for array subscript
      arr[i][j] = 0,ans[i][cnt + 1] ^= 1;
                                  ^
0_0_22157675_25066.cpp:31:15: error: 'now' was not declared in this scope
   for(int j = now + 1; j <= cnt; ++j)
               ^
0_0_22157675_25066.cpp:35:13: error: 'now' was not declared in this scope
   represent[now] = i;
             ^
0_0_22157675_25066.cpp:38:14: error: 'now' was not declared in this scope
  for(int i = now; i; --i) {
              ^
0_0_22157675_25066.cpp: In function 'int main()':
0_0_22157675_25066.cpp:49:9: error: 'm' was not declared in this scope
  cin >> m >> n;
         ^
0_0_22157675_25066.cpp:49:14: error: 'n' was not declared in this scope
  cin >> m >> n;
              ^
0_0_22157675_25066.cpp:52:18: error: 'cnt' was not declared in this scope
    num[i][j] = ++cnt;
                  ^


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-12-02 09:14:36, Gzip enabled