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_16388858_19372.cpp:33:22: error: stray '#' in program
 bool cmp(const word &a, const word &b)
                      ^
0_0_16388858_19372.cpp:33:41: error: stray '#' in program
 bool cmp(const word &a, const word &b)
                                         ^
0_0_16388858_19372.cpp:40:27: error: stray '#' in program
         if (b[k][i] == 1 && s[i] == 0) return false;
                           ^
0_0_16388858_19372.cpp:40:32: error: stray '#' in program
         if (b[k][i] == 1 && s[i] == 0) return false;
                                ^
0_0_16388858_19372.cpp:41:27: error: stray '#' in program
         if (b[k][i] == 2 && s[i] > 0) return false;
                           ^
0_0_16388858_19372.cpp:41:32: error: stray '#' in program
         if (b[k][i] == 2 && s[i] > 0) return false;
                                ^
0_0_16388858_19372.cpp:42:27: error: stray '#' in program
         if (b[k][i] == 3 && s[i] > 0) us = true;
                           ^
0_0_16388858_19372.cpp:42:32: error: stray '#' in program
         if (b[k][i] == 3 && s[i] > 0) us = true;
                                ^
0_0_16388858_19372.cpp:74:31: error: stray '#' in program
             if ('a' <= s[i]  && s[i] <= 'z')
                               ^
0_0_16388858_19372.cpp:74:36: error: stray '#' in program
             if ('a' <= s[i]  && s[i] <= 'z')
                                    ^
0_0_16388858_19372.cpp:76:28: error: stray '#' in program
                 if (i > 0 && s[i - 1] == '+')
                            ^
0_0_16388858_19372.cpp:76:33: error: stray '#' in program
                 if (i > 0 && s[i - 1] == '+')
                                 ^
0_0_16388858_19372.cpp:78:28: error: stray '#' in program
                 if (i > 0 && s[i - 1] == '-')
                            ^
0_0_16388858_19372.cpp:78:33: error: stray '#' in program
                 if (i > 0 && s[i - 1] == '-')
                                 ^
0_0_16388858_19372.cpp:92:34: error: stray '#' in program
             if (ans == -1) puts("NONE");
                                  ^
0_0_16388858_19372.cpp:92:43: error: stray '#' in program
             if (ans == -1) puts("NONE");
                                           ^
0_0_16388858_19372.cpp:95:15: error: stray '#' in program
         puts("$");
               ^
0_0_16388858_19372.cpp:95:21: error: stray '#' in program
         puts("$");
                     ^
0_0_16388858_19372.cpp:33:23: error: expected ',' or '...' before numeric constant
 bool cmp(const word &a, const word &b)
                       ^
0_0_16388858_19372.cpp:33:25: error: expected ')' before ';' token
 bool cmp(const word &a, const word &b)
                         ^
0_0_16388858_19372.cpp:33:26: error: 'a' does not name a type
 bool cmp(const word &a, const word &b)
                          ^
0_0_16388858_19372.cpp:33:45: error: 'b' does not name a type
 bool cmp(const word &a, const word &b)
                                             ^
0_0_16388858_19372.cpp: In function 'bool match(int*, int)':
0_0_16388858_19372.cpp:40:30: error: expected ')' before ';' token
         if (b[k][i] == 1 && s[i] == 0) return false;
                              ^
0_0_16388858_19372.cpp:40:33: error: lvalue required as unary '&' operand
         if (b[k][i] == 1 && s[i] == 0) return false;
                                 ^
0_0_16388858_19372.cpp:40:46: error: expected ';' before ')' token
         if (b[k][i] == 1 && s[i] == 0) return false;
                                              ^
0_0_16388858_19372.cpp:41:30: error: expected ')' before ';' token
         if (b[k][i] == 2 && s[i] > 0) return false;
                              ^
0_0_16388858_19372.cpp:41:33: error: lvalue required as unary '&' operand
         if (b[k][i] == 2 && s[i] > 0) return false;
                                 ^
0_0_16388858_19372.cpp:41:45: error: expected ';' before ')' token
         if (b[k][i] == 2 && s[i] > 0) return false;
                                             ^
0_0_16388858_19372.cpp:42:30: error: expected ')' before ';' token
         if (b[k][i] == 3 && s[i] > 0) us = true;
                              ^
0_0_16388858_19372.cpp:42:33: error: lvalue required as unary '&' operand
         if (b[k][i] == 3 && s[i] > 0) us = true;
                                 ^
0_0_16388858_19372.cpp:42:45: error: expected ';' before ')' token
         if (b[k][i] == 3 && s[i] > 0) us = true;
                                             ^
0_0_16388858_19372.cpp: In function 'int main()':
0_0_16388858_19372.cpp:74:34: error: expected ')' before ';' token
             if ('a' <= s[i]  && s[i] <= 'z')
                                  ^
0_0_16388858_19372.cpp:74:37: error: lvalue required as unary '&' operand
             if ('a' <= s[i]  && s[i] <= 'z')
                                     ^
0_0_16388858_19372.cpp:74:43: error: 'i' was not declared in this scope
             if ('a' <= s[i]  && s[i] <= 'z')
                                           ^
0_0_16388858_19372.cpp:81:15: error: 'else' without a previous 'if'
             } else
               ^
0_0_16388858_19372.cpp:92:35: error: lvalue required as unary '&' operand
             if (ans == -1) puts("NONE");
                                   ^
0_0_16388858_19372.cpp:92:38: error: 'NONE' was not declared in this scope
             if (ans == -1) puts("NONE");
                                      ^
0_0_16388858_19372.cpp:92:47: error: expected primary-expression before ')' token
             if (ans == -1) puts("NONE");
                                               ^
0_0_16388858_19372.cpp:93:13: error: 'else' without a previous 'if'
             else puts(dic[ans].t.c_str());
             ^
0_0_16388858_19372.cpp:95:16: error: lvalue required as unary '&' operand
         puts("$");
                ^
0_0_16388858_19372.cpp:95:19: error: '$' was not declared in this scope
         puts("$");
                   ^
0_0_16388858_19372.cpp:95:25: error: expected primary-expression before ')' token
         puts("$");
                         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_16388858_19372.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = word*; _Iterator2 = word*; _Compare = bool (*)(const word&)]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1846:27:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = word*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const word&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = word*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const word&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = word*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const word&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = word*; _Compare = bool (*)(const word&)]'
0_0_16388858_19372.cpp:62:39:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:46: error: too many arguments to function
         { return bool(_M_comp(*__it1, *__it2)); }
                                              ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = word; _Iterator = word*; _Compare = bool (*)(const word&)]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1827:34:   required from 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = word*; _Compare = __gnu_cxx::__ops::_Val_comp_iter<bool (*)(const word&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1855:46:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = word*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const word&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = word*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const word&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   requi


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-06-29 14:11:38, Gzip enabled