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_39134531_27883.cpp: In function 'int main()':
0_0_39134531_27883.cpp:25:15: error: no match for 'operator~' (operand type is 'std::istream' {aka 'std::basic_istream<char>'})
   25 |         while(~cin>>n>>m){
      |               ^~~~
0_0_39134531_27883.cpp:25:15: note: candidate: 'operator~(int)' (built-in)
0_0_39134531_27883.cpp:25:15: note:   no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from .\stdc++.h:41:
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
      |             ~~~~~^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/streambuf:43,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/streambuf_iterator.h:35,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iterator:66,
                 from .\stdc++.h:54:
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)
      |             ~~~~~~~~~~~~~^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/format:39,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/chrono_io.h:39,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/chrono:3330,
                 from .\stdc++.h:172:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/charconv:653:3: note: candidate: 'constexpr std::chars_format std::operator~(chars_format)'
  653 |   operator~(chars_format __fmt) noexcept
      |   ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/charconv:653:26: note:   no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'std::chars_format'
  653 |   operator~(chars_format __fmt) noexcept
      |             ~~~~~~~~~~~~~^~~~~
In file included from .\stdc++.h:176:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/future:173:20: note: candidate: 'constexpr std::launch std::operator~(launch)'
  173 |   constexpr launch operator~(launch __x) noexcept
      |                    ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/future:173:37: note:   no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'std::launch'
  173 |   constexpr launch operator~(launch __x) noexcept
      |                              ~~~~~~~^~~
0_0_39134531_27883.cpp:35:44: error: expected primary-expression before 'if'
   35 |                                         if(if(i==0){
      |                                            ^~
0_0_39134531_27883.cpp:35:44: error: expected ')' before 'if'
   35 |                                         if(if(i==0){
      |                                           ~^~
      |                                            )
0_0_39134531_27883.cpp:44:60: error: 'staa' was not declared in this scope; did you mean 'stat'?
   44 |                                                 if(sta[p]&(staa[k]>>1)||sta[p]&(sta[k]<<1))
      |                                                            ^~~~
      |                                                            stat


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-19 05:52:34, Gzip enabled