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_35647683_20238.cpp:1:1: error: 'include' does not name a type
 include <bits/stdc++.h>
 ^
0_0_35647683_20238.cpp: In function 'int main()':
0_0_35647683_20238.cpp:7:36: error: 'scanf' was not declared in this scope
      while (~scanf ("%d %d", &n, &m)) {
                                    ^
0_0_35647683_20238.cpp:8:10: error: 'vector' was not declared in this scope
          vector < bool >table (2 * n, true);
          ^
0_0_35647683_20238.cpp:8:19: error: expected primary-expression before 'bool'
          vector < bool >table (2 * n, true);
                   ^
0_0_35647683_20238.cpp:14:22: error: 'table' was not declared in this scope
                  if (table[c % (2 * n)]) {
                      ^
0_0_35647683_20238.cpp:18:14: error: 'table' was not declared in this scope
              table[c % (2 * n)] = false;
              ^
0_0_35647683_20238.cpp:23:18: error: 'table' was not declared in this scope
              if (table[i]) {
                  ^
0_0_35647683_20238.cpp:24:30: error: 'putchar' was not declared in this scope
                  putchar ('G');
                              ^
0_0_35647683_20238.cpp:27:30: error: 'putchar' was not declared in this scope
                  putchar ('B');
                              ^
0_0_35647683_20238.cpp:30:31: error: 'putchar' was not declared in this scope
                  putchar ('\n');
                               ^
0_0_35647683_20238.cpp:34:27: error: 'putchar' was not declared in this scope
              putchar ('\n');
                           ^
0_0_35647683_20238.cpp:37:27: error: 'printf' was not declared in this scope
              printf("\n\n");
                           ^


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:27:47, Gzip enabled