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_38486533_9849.cpp: In constructor 'matrix::matrix()':
0_0_38486533_9849.cpp:55:25: error: 'memset' was not declared in this scope
   memset(c, 0, sizeof(c));
                         ^
0_0_38486533_9849.cpp: In member function 'void matrix::Guass()':
0_0_38486533_9849.cpp:69:18: error: 'j' was not declared in this scope
    if (Zero(c[i][j])) continue;
                  ^
0_0_38486533_9849.cpp: In member function 'void matrix::clear()':
0_0_38486533_9849.cpp:85:25: error: 'memset' was not declared in this scope
   memset(c, 0, sizeof(c));
                         ^
0_0_38486533_9849.cpp: In member function 'long long int Kirchhoff::solve(int, int)':
0_0_38486533_9849.cpp:106:51: error: lvalue required as left operand of assignment
   for (int i = 1; i <= nn; i++) if (!(s & (1 << i = 1))) id[i] = ++cnt;
                                                   ^
0_0_38486533_9849.cpp: In function 'int main()':
0_0_38486533_9849.cpp:126:27: error: 'memset' was not declared in this scope
   memset(mp, 0, sizeof(mp));
                           ^
0_0_38486533_9849.cpp:153:17: error: 'k' was not declared in this scope
    for (int i = k )
                 ^
0_0_38486533_9849.cpp:155:4: error: 'ans' was not declared in this scope
    ans = add(ans, 1ll * Tree.solve(s, n) * tmp % mo * inv2 % mo);
    ^
0_0_38486533_9849.cpp:155:36: error: 's' was not declared in this scope
    ans = add(ans, 1ll * Tree.solve(s, n) * tmp % mo * inv2 % mo);
                                    ^
0_0_38486533_9849.cpp:155:44: error: 'tmp' was not declared in this scope
    ans = add(ans, 1ll * Tree.solve(s, n) * tmp % mo * inv2 % mo);
                                            ^
0_0_38486533_9849.cpp:156:3: error: expected primary-expression before '}' token
   }
   ^
0_0_38486533_9849.cpp:156:3: error: expected ')' before '}' token
0_0_38486533_9849.cpp:156:3: error: expected primary-expression before '}' token
0_0_38486533_9849.cpp:157:20: error: 'ans' was not declared in this scope
   printf("%lld\n", ans);
                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 04:04:24, Gzip enabled