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_35647569_9366.cpp:1:1: error: 'include' does not name a type
 include <bits/stdc++.h>
 ^
0_0_35647569_9366.cpp: In function 'int main()':
0_0_35647569_9366.cpp:7:36: error: 'scanf' was not declared in this scope
      while (~(scanf("%d %d", &n, &m)))
                                    ^
0_0_35647569_9366.cpp:9:10: error: 'vector' was not declared in this scope
          vector<bool> table(2 * n, true);
          ^
0_0_35647569_9366.cpp:9:17: error: expected primary-expression before 'bool'
          vector<bool> table(2 * n, true);
                 ^
0_0_35647569_9366.cpp:17:22: error: 'table' was not declared in this scope
                  if (table[c % (2 * n)])
                      ^
0_0_35647569_9366.cpp:22:14: error: 'table' was not declared in this scope
              table[c % (2 * n)] = false;
              ^
0_0_35647569_9366.cpp:25:23: error: 'table' was not declared in this scope
          for (bool p: table)
                       ^
0_0_35647569_9366.cpp:29:29: error: 'putchar' was not declared in this scope
                  putchar('G');
                             ^
0_0_35647569_9366.cpp:33:29: error: 'putchar' was not declared in this scope
                  putchar('B');
                             ^


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-30 02:39:40, Gzip enabled