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_38842542_23033.cpp:3:7: error: 'type' was not declared in this scope; did you mean 'std::__cmp_cat::type'?
    3 | queue<type> qvar;
      |       ^~~~
      |       std::__cmp_cat::type
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:65,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:64,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/deque:62,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/queue:62,
                 from 0_0_38842542_23033.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:49:11: note: 'std::__cmp_cat::type' declared here
   49 |     using type = signed char;
      |           ^~~~
0_0_38842542_23033.cpp:3:7: error: 'type' was not declared in this scope; did you mean 'std::__cmp_cat::type'?
    3 | queue<type> qvar;
      |       ^~~~
      |       std::__cmp_cat::type
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:49:11: note: 'std::__cmp_cat::type' declared here
   49 |     using type = signed char;
      |           ^~~~
0_0_38842542_23033.cpp:3:7: error: 'type' was not declared in this scope; did you mean 'std::__cmp_cat::type'?
    3 | queue<type> qvar;
      |       ^~~~
      |       std::__cmp_cat::type
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:49:11: note: 'std::__cmp_cat::type' declared here
   49 |     using type = signed char;
      |           ^~~~
0_0_38842542_23033.cpp:3:7: error: 'type' was not declared in this scope; did you mean 'std::__cmp_cat::type'?
    3 | queue<type> qvar;
      |       ^~~~
      |       std::__cmp_cat::type
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:49:11: note: 'std::__cmp_cat::type' declared here
   49 |     using type = signed char;
      |           ^~~~
0_0_38842542_23033.cpp:3:7: error: 'type' was not declared in this scope; did you mean 'std::__cmp_cat::type'?
    3 | queue<type> qvar;
      |       ^~~~
      |       std::__cmp_cat::type
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:49:11: note: 'std::__cmp_cat::type' declared here
   49 |     using type = signed char;
      |           ^~~~
0_0_38842542_23033.cpp:3:7: error: 'type' was not declared in this scope; did you mean 'std::__cmp_cat::type'?
    3 | queue<type> qvar;
      |       ^~~~
      |       std::__cmp_cat::type
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:49:11: note: 'std::__cmp_cat::type' declared here
   49 |     using type = signed char;
      |           ^~~~
0_0_38842542_23033.cpp:3:7: error: 'type' was not declared in this scope; did you mean 'std::__cmp_cat::type'?
    3 | queue<type> qvar;
      |       ^~~~
      |       std::__cmp_cat::type
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:49:11: note: 'std::__cmp_cat::type' declared here
   49 |     using type = signed char;
      |           ^~~~
0_0_38842542_23033.cpp:3:7: error: 'type' was not declared in this scope; did you mean 'std::__cmp_cat::type'?
    3 | queue<type> qvar;
      |       ^~~~
      |       std::__cmp_cat::type
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:49:11: note: 'std::__cmp_cat::type' declared here
   49 |     using type = signed char;
      |           ^~~~
0_0_38842542_23033.cpp:3:7: error: 'type' was not declared in this scope; did you mean 'std::__cmp_cat::type'?
    3 | queue<type> qvar;
      |       ^~~~
      |       std::__cmp_cat::type
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:49:11: note: 'std::__cmp_cat::type' declared here
   49 |     using type = signed char;
      |           ^~~~
0_0_38842542_23033.cpp:3:1: error: 'queue' does not name a type
    3 | queue<type> qvar;
      | ^~~~~
0_0_38842542_23033.cpp:5:1: error: 'qvar' does not name a type
    5 | qvar.pop();
      | ^~~~
0_0_38842542_23033.cpp:7:1: error: 'var' does not name a type
    7 | var=qvar.front();
      | ^~~
0_0_38842542_23033.cpp:9:1: error: 'qvar' does not name a type
    9 | qvar.push(var);
      | ^~~~


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-05-25 20:54:15, Gzip enabled