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_38794131_15430.cpp: In function 'int main()':
0_0_38794131_15430.cpp:77:15: error: no match for 'operator~' (operand type is 'std::istream' {aka 'std::basic_istream<char>'})
   77 |         while(~cin>>n)
      |               ^~~~
0_0_38794131_15430.cpp:77:15: note: candidate: 'operator~(int)' (built-in)
0_0_38794131_15430.cpp:77:15: note:   no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/memory_resource.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:58,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/locale_classes.h:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:41,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
                 from 0_0_38794131_15430.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cstddef:150:3: note: candidate: 'constexpr std::byte std::operator~(byte)'
  150 |   operator~(byte __b) noexcept
      |   ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cstddef:150:18: note:   no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'std::byte'
  150 |   operator~(byte __b) noexcept
      |             ~~~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:95:3: note: candidate: 'constexpr std::_Ios_Fmtflags std::operator~(_Ios_Fmtflags)'
   95 |   operator~(_Ios_Fmtflags __a)
      |   ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:95:27: note:   no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'std::_Ios_Fmtflags'
   95 |   operator~(_Ios_Fmtflags __a)
      |             ~~~~~~~~~~~~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:138:3: note: candidate: 'constexpr std::_Ios_Openmode std::operator~(_Ios_Openmode)'
  138 |   operator~(_Ios_Openmode __a)
      |   ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:138:27: note:   no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'std::_Ios_Openmode'
  138 |   operator~(_Ios_Openmode __a)
      |             ~~~~~~~~~~~~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:178:3: note: candidate: 'constexpr std::_Ios_Iostate std::operator~(_Ios_Iostate)'
  178 |   operator~(_Ios_Iostate __a)
      |   ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:178:26: note:   no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'std::_Ios_Iostate'
  178 |   operator~(_Ios_Iostate __a)
      |             ~~~~~~~~~~~~~^~~


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-11-26 18:13:48, Gzip enabled