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_36379020_13851.cpp:28:24: error: 'enable_if_t' has not been declared
     template <class T, enable_if_t<is_same<T, string>::value, int> = 0>
                        ^
0_0_36379020_13851.cpp:28:35: error: expected '>' before '<' token
     template <class T, enable_if_t<is_same<T, string>::value, int> = 0>
                                   ^
0_0_36379020_13851.cpp:41:24: error: 'enable_if_t' has not been declared
     template <class T, enable_if_t<is_integral<T>::value, int> = 0>
                        ^
0_0_36379020_13851.cpp:41:35: error: expected '>' before '<' token
     template <class T, enable_if_t<is_integral<T>::value, int> = 0>
                                   ^
0_0_36379020_13851.cpp:42:10: error: 'template<class T, int <anonymous> > bool Scanner::read_single(T&)' cannot be overloaded
     bool read_single(T& ref) {
          ^
0_0_36379020_13851.cpp:29:10: error: with 'template<class T, int <anonymous> > bool Scanner::read_single(T&)'
     bool read_single(T& ref) {
          ^
0_0_36379020_13851.cpp:101:24: error: 'enable_if_t' has not been declared
     template <class T, enable_if_t<is_integral<T>::value, int> = 0>
                        ^
0_0_36379020_13851.cpp:101:35: error: expected '>' before '<' token
     template <class T, enable_if_t<is_integral<T>::value, int> = 0>
                                   ^
0_0_36379020_13851.cpp: In member function 'void Printer::write_single(long double)':
0_0_36379020_13851.cpp:139:27: error: call of overloaded 'write_single(long long int&)' is ambiguous
             write_single(v);
                           ^
0_0_36379020_13851.cpp:139:27: note: candidates are:
0_0_36379020_13851.cpp:97:10: note: void Printer::write_single(const char&)
     void write_single(const char& val) {
          ^
0_0_36379020_13851.cpp:122:10: note: void Printer::write_single(const string&) <near match>
     void write_single(const string& s) {
          ^
0_0_36379020_13851.cpp:122:10: note:   no known conversion for argument 1 from 'long long int' to 'const string& {aka const std::basic_string<char>&}'
0_0_36379020_13851.cpp:125:10: note: void Printer::write_single(const char*) <near match>
     void write_single(const char* s) {
          ^
0_0_36379020_13851.cpp:125:10: note:   no known conversion for argument 1 from 'long long int' to 'const char*'
0_0_36379020_13851.cpp:136:10: note: void Printer::write_single(long double)
     void write_single(long double d) {
          ^
0_0_36379020_13851.cpp:146:27: error: call of overloaded 'write_single(long long int&)' is ambiguous
             write_single(v);
                           ^
0_0_36379020_13851.cpp:146:27: note: candidates are:
0_0_36379020_13851.cpp:97:10: note: void Printer::write_single(const char&)
     void write_single(const char& val) {
          ^
0_0_36379020_13851.cpp:122:10: note: void Printer::write_single(const string&) <near match>
     void write_single(const string& s) {
          ^
0_0_36379020_13851.cpp:122:10: note:   no known conversion for argument 1 from 'long long int' to 'const string& {aka const std::basic_string<char>&}'
0_0_36379020_13851.cpp:125:10: note: void Printer::write_single(const char*) <near match>
     void write_single(const char* s) {
          ^
0_0_36379020_13851.cpp:125:10: note:   no known conversion for argument 1 from 'long long int' to 'const char*'
0_0_36379020_13851.cpp:136:10: note: void Printer::write_single(long double)
     void write_single(long double d) {
          ^
0_0_36379020_13851.cpp: In instantiation of 'void Scanner::read(H&, T& ...) [with H = int; T = {}]':
0_0_36379020_13851.cpp:158:14:   required from here
0_0_36379020_13851.cpp:64:31: error: no matching function for call to 'Scanner::read_single(int&)'
         bool f = read_single(h);
                               ^
0_0_36379020_13851.cpp:64:31: note: candidates are:
0_0_36379020_13851.cpp:29:10: note: template<class T, int <anonymous> > bool Scanner::read_single(T&)
     bool read_single(T& ref) {
          ^
0_0_36379020_13851.cpp:29:10: note:   template argument deduction/substitution failed:
0_0_36379020_13851.cpp:64:31: note:   couldn't deduce template parameter '<anonymous>'
         bool f = read_single(h);
                               ^
0_0_36379020_13851.cpp:56:29: note: template<class T> bool Scanner::read_single(std::vector<_RealType>&)
     template <class T> bool read_single(vector<T>& ref) {
                             ^
0_0_36379020_13851.cpp:56:29: note:   template argument deduction/substitution failed:
0_0_36379020_13851.cpp:64:31: note:   mismatched types 'std::vector<_RealType>' and 'int'
         bool f = read_single(h);
                               ^
0_0_36379020_13851.cpp: In instantiation of 'void Printer::write(const H&, const T& ...) [with bool F = false; H = long long int; T = {}]':
0_0_36379020_13851.cpp:81:9:   required from 'void Printer::writeln(const T& ...) [with T = {long long int}]'
0_0_36379020_13851.cpp:199:23:   required from here
0_0_36379020_13851.cpp:77:9: error: call of overloaded 'write_single(const long long int&)' is ambiguous
         write_single(h);
         ^
0_0_36379020_13851.cpp:77:9: note: candidates are:
0_0_36379020_13851.cpp:97:10: note: void Printer::write_single(const char&)
     void write_single(const char& val) {
          ^
0_0_36379020_13851.cpp:122:10: note: void Printer::write_single(const string&) <near match>
     void write_single(const string& s) {
          ^
0_0_36379020_13851.cpp:122:10: note:   no known conversion for argument 1 from 'const long long int' to 'const string& {aka const std::basic_string<char>&}'
0_0_36379020_13851.cpp:125:10: note: void Printer::write_single(const char*) <near match>
     void write_single(const char* s) {
          ^
0_0_36379020_13851.cpp:125:10: note:   no known conversion for argument 1 from 'const long long int' to 'const char*'
0_0_36379020_13851.cpp:136:10: note: void Printer::write_single(long double)
     void write_single(long double d) {
          ^


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-02-28 01:10:38, Gzip enabled