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_38757241_14135.cpp: In function 'void quyu(int, int)':
0_0_38757241_14135.cpp:12:31: error: 'qq' was not declared in this scope
   12 |                               qq.insert(1);
      |                               ^~
0_0_38757241_14135.cpp:14:31: error: 'qq' was not declared in this scope
   14 |                               qq.insert(2);
      |                               ^~
0_0_38757241_14135.cpp:16:31: error: 'qq' was not declared in this scope
   16 |                               qq.insert(3);
      |                               ^~
0_0_38757241_14135.cpp:18:31: error: 'qq' was not declared in this scope
   18 |                               qq.insert(4);
      |                               ^~
0_0_38757241_14135.cpp:29:31: error: 'qq' was not declared in this scope
   29 |                               qq.insert(1);
      |                               ^~
0_0_38757241_14135.cpp:31:31: error: 'qq' was not declared in this scope
   31 |                               qq.insert(2);
      |                               ^~
0_0_38757241_14135.cpp:33:31: error: 'qq' was not declared in this scope
   33 |                               qq.insert(3);
      |                               ^~
0_0_38757241_14135.cpp:35:31: error: 'qq' was not declared in this scope
   35 |                               qq.insert(4);
      |                               ^~
0_0_38757241_14135.cpp:46:31: error: 'qq' was not declared in this scope
   46 |                               qq.insert(1);
      |                               ^~
0_0_38757241_14135.cpp:48:31: error: 'qq' was not declared in this scope
   48 |                               qq.insert(2);
      |                               ^~
0_0_38757241_14135.cpp:50:31: error: 'qq' was not declared in this scope
   50 |                               qq.insert(3);
      |                               ^~
0_0_38757241_14135.cpp:52:31: error: 'qq' was not declared in this scope
   52 |                               qq.insert(4);
      |                               ^~
0_0_38757241_14135.cpp:63:31: error: 'qq' was not declared in this scope
   63 |                               qq.insert(1);
      |                               ^~
0_0_38757241_14135.cpp:65:31: error: 'qq' was not declared in this scope
   65 |                               qq.insert(2);
      |                               ^~
0_0_38757241_14135.cpp:67:31: error: 'qq' was not declared in this scope
   67 |                               qq.insert(3);
      |                               ^~
0_0_38757241_14135.cpp:69:31: error: 'qq' was not declared in this scope
   69 |                               qq.insert(4);
      |                               ^~
0_0_38757241_14135.cpp: In function 'void pd1(int, int)':
0_0_38757241_14135.cpp:80:19: error: 'qq' was not declared in this scope
   80 |                   qq.insert(1);
      |                   ^~
0_0_38757241_14135.cpp:82:19: error: 'qq' was not declared in this scope
   82 |                   qq.insert(2);
      |                   ^~
0_0_38757241_14135.cpp:84:19: error: 'qq' was not declared in this scope
   84 |                   qq.insert(3);
      |                   ^~
0_0_38757241_14135.cpp:86:19: error: 'qq' was not declared in this scope
   86 |                   qq.insert(4);
      |                   ^~
0_0_38757241_14135.cpp:91:19: error: 'qq' was not declared in this scope
   91 |                   qq.insert(1);
      |                   ^~
0_0_38757241_14135.cpp:93:19: error: 'qq' was not declared in this scope
   93 |                   qq.insert(2);
      |                   ^~
0_0_38757241_14135.cpp:95:19: error: 'qq' was not declared in this scope
   95 |                   qq.insert(3);
      |                   ^~
0_0_38757241_14135.cpp:97:19: error: 'qq' was not declared in this scope
   97 |                   qq.insert(4);
      |                   ^~
0_0_38757241_14135.cpp: In function 'int main()':
0_0_38757241_14135.cpp:102:7: error: 'ios' has not been declared
  102 |       ios::sync_with_stdio(false);
      |       ^~~
0_0_38757241_14135.cpp:103:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
  103 |       cin.tie(NULL);
      |       ^~~
      |       std::cin
In file included from .\stdc++.h:146:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
0_0_38757241_14135.cpp:104:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
  104 |       cout.tie(NULL);
      |       ^~~~
      |       std::cout
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
0_0_38757241_14135.cpp:105:12: error: 'h' was not declared in this scope
  105 |       fill(h, h + N, -1);
      |            ^
0_0_38757241_14135.cpp:105:19: error: 'N' was not declared in this scope
  105 |       fill(h, h + N, -1);
      |                   ^
0_0_38757241_14135.cpp:105:7: error: 'fill' was not declared in this scope
  105 |       fill(h, h + N, -1);
      |       ^~~~
0_0_38757241_14135.cpp:105:7: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:73,
                 from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:191:1: note:   'std::fill'
  191 | fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algobase.h:595:30: note:   'std::ranges::fill'
  595 |   inline constexpr __fill_fn fill{};
      |                              ^~~~
0_0_38757241_14135.cpp:106:14: error: 'n' was not declared in this scope
  106 |       cin >> n;
      |              ^
0_0_38757241_14135.cpp:109:35: error: 'idx' was not declared in this scope
  109 |             cout << "Case #" << ++idx << ":" << endl;
      |                                   ^~~
0_0_38757241_14135.cpp:109:49: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
  109 |             cout << "Case #" << ++idx << ":" << endl;
      |                                                 ^~~~
      |                                                 std::endl
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/unique_ptr.h:42,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/memory:78,
                 from .\stdc++.h:56:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:735:5: note: 'std::endl' declared here
  735 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
0_0_38757241_14135.cpp:134:37: error: 'qq' was not declared in this scope
  134 |                                     qq.clear();
      |                                     ^~


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.000000(s) query 1, Server time : 2025-01-11 03:57:23, Gzip enabled