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_38580899_25515.cpp: In function 'int main()':
0_0_38580899_25515.cpp:18:14: error: no match for 'operator!=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
  while(cin>>n!=-1){
        ~~~~~~^~~~
0_0_38580899_25515.cpp:18:14: note: candidate: 'operator!=(int, int)' <built-in>
0_0_38580899_25515.cpp:18:14: note:   no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int'
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/regex:62,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:110,
                 from 0_0_38580899_25515.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:991:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)'
     operator!=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
     ^~~~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:991:5: note:   template argument deduction/substitution failed:
0_0_38580899_25515.cpp:18:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  while(cin>>n!=-1){
                 ^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/regex:62,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:110,
                 from 0_0_38580899_25515.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1069:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&)'
     operator!=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
     ^~~~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1069:5: note:   template argument deduction/substitution failed:
0_0_38580899_25515.cpp:18:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
  while(cin>>n!=-1){
                 ^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/regex:62,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:110,
                 from 0_0_38580899_25515.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1149:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
     operator!=(const sub_match<_Bi_iter>& __lhs,
     ^~~~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1149:5: note:   template argument deduction/substitution failed:
0_0_38580899_25515.cpp:18:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  while(cin>>n!=-1){
                 ^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/regex:62,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:110,
                 from 0_0_38580899_25515.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1226:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type*, const std::__cxx11::sub_match<_BiIter>&)'
     operator!=(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
     ^~~~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1226:5: note:   template argument deduction/substitution failed:
0_0_38580899_25515.cpp:18:17: note:   mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
  while(cin>>n!=-1){
                 ^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/regex:62,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:110,
                 from 0_0_38580899_25515.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1300:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
     operator!=(const sub_match<_Bi_iter>& __lhs,
     ^~~~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1300:5: note:   template argument deduction/substitution failed:
0_0_38580899_25515.cpp:18:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  while(cin>>n!=-1){
                 ^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/regex:62,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:110,
                 from 0_0_38580899_25515.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1377:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type&, const std::__cxx11::sub_match<_BiIter>&)'
     operator!=(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
     ^~~~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1377:5: note:   template argument deduction/substitution failed:
0_0_38580899_25515.cpp:18:17: note:   mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
  while(cin>>n!=-1){
                 ^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/regex:62,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:110,
                 from 0_0_38580899_25515.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1457:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
     operator!=(const sub_match<_Bi_iter>& __lhs,
     ^~~~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1457:5: note:   template argument deduction/substitution failed:
0_0_38580899_25515.cpp:18:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  while(cin>>n!=-1){
                 ^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/regex:62,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:110,
                 from 0_0_38580899_25515.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1981:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator!=(const std::__cxx11::match_results<_BiIter, _Alloc>&, const std::__cxx11::match_results<_BiIter, _Alloc>&)'
     operator!=(const match_results<_Bi_iter, _Alloc>& __m1,
     ^~~~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/regex.h:1981:5: note:   template argument deduction/substitution failed:
0_0_38580899_25515.cpp:18:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
  while(cin>>n!=-1){
                 ^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:64,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/specfun.h:45,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/cmath:1892,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41,
                 from 0_0_38580899_25515.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_pair.h:461:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)'
     operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^~~~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_pair.h:461:5: note:   template argument deduction/substitution failed:
0_0_38580899_25515.cpp:18:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>'
  while(cin>>n!=-1){
                 ^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:67,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/specfun.h:45,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/cmath:1892,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include


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-14 07:51:07, Gzip enabled