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_36210755_19398.cpp: In function 'void Solver::main()':
0_0_36210755_19398.cpp:25:16: error: 'n' was not declared in this scope
   if (!(cin >> n >> k)) exit(0);
                ^
0_0_36210755_19398.cpp:25:21: error: 'k' was not declared in this scope
   if (!(cin >> n >> k)) exit(0);
                     ^
0_0_36210755_19398.cpp:26:3: error: 'M' was not declared in this scope
   M = 1 << k; ans = 0;
   ^
0_0_36210755_19398.cpp:26:12: error: 'k' was not declared in this scope
   M = 1 << k; ans = 0;
            ^
0_0_36210755_19398.cpp:27:14: error: 'n' was not declared in this scope
   For (i, 1, n) {
              ^
0_0_36210755_19398.cpp:4:49: note: in definition of macro 'For'
 #define For(i, a, b) for (int i = (a), _##i  = (b); i <= _##i; ++i)
                                                 ^
0_0_36210755_19398.cpp:32:14: error: 'n' was not declared in this scope
   FOR (i, 1, n) {
              ^
0_0_36210755_19398.cpp:5:49: note: in definition of macro 'FOR'
 #define FOR(i, a, b) for (int i = (a), _##i  = (b); i < _##i; ++i)
                                                 ^
0_0_36210755_19398.cpp:41:15: error: 'n' was not declared in this scope
    For (i, 1, n) siz[i] = S >> val[i] & 1;
               ^
0_0_36210755_19398.cpp:4:49: note: in definition of macro 'For'
 #define For(i, a, b) for (int i = (a), _##i  = (b); i <= _##i; ++i)
                                                 ^


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-24 08:16:44, Gzip enabled