Submission #00106


ソースコード

ステータス

項目 データ
問題 0003 - うわ!ラーメンマン現る!
ユーザー名 r1910
投稿日時 2019-09-04 16:52:52
言語 C++
状態 Compile Error
得点 0
ソースコード長 500 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:4:36: error: conflicting declaration ‘int h2’
   int n,m,h,w,w1[100000],h2[10000],h2,w2,a=0,b=0,c=0,d=1000000;
                                    ^~
./Main.cpp:4:26: note: previous declaration as ‘int h2 [10000]’
   int n,m,h,w,w1[100000],h2[10000],h2,w2,a=0,b=0,c=0,d=1000000;
                          ^~
./Main.cpp:7:10: error: ‘h1’ was not declared in this scope
     cin>>h1[i]>>w1[i];
          ^~
./Main.cpp:7:10: note: suggested alternative: ‘h2’
     cin>>h1[i]>>w1[i];
          ^~
          h2
./Main.cpp:9:8: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int [10000]’)
     cin>>h2>>w2;
     ~~~^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:168:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’ <near match>
       operator>>(bool& __n)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:168:7: note:   conversion of argument 1 would be ill-formed:
./Main.cpp:9:10: error: cannot bind non-const lvalue reference of type ‘bool&’ to an rvalue of type ‘bool’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:172:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]’ <near match>
       operator>>(short& __n);
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:172:7: note:   conversion of argument 1 would be ill-formed:
./Main.cpp:9:10: error: invalid conversion from ‘int*’ to ‘short int’ [-fpermissive]
     cin>>h2>>w2;
          ^~
./Main.cpp:9:10: error: cannot bind rvalue ‘(short int)((int*)(& h2))’ to ‘short int&’
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:175:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’ <near match>
       operator>>(unsigned short& __n)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:175:7: note:   conversion of argument 1 would be ill-formed:
./Main.cpp:9:10: error: invalid conversion from ‘int*’ to ‘short unsigned int’ [-fpermissive]
     cin>>h2>>w2;
          ^~
./Main.cpp:9:10: error: cannot bind rvalue ‘(short unsigned int)((int*)(& h2))’ to ‘short unsigned int&’
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:179:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]’ <near match>
       operator>>(int& __n);
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:179:7: note:   conversion of argument 1 would be ill-formed:
./Main.cpp:9:10: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
     cin>>h2>>w2;
          ^~
./Main.cpp:9:10: error: cannot bind rvalue ‘(int)((int*)(& h2))’ to ‘int&’
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:182:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’ <near match>
       operator>>(unsigned int& __n)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:182:7: note:   conversion of argument 1 would be ill-formed:
./Main.cpp:9:10: error: invalid conversion from ‘int*’ to ‘unsigned int’ [-fpermissive]
     cin>>h2>>w2;
          ^~
./Main.cpp:9:10: error: cannot bind rvalue ‘(unsigned int)((int*)(& h2))’ to ‘unsigned int&’
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:186:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’ <near match>
       operator>>(long& __n)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:186:7: note:   conversion of argument 1 would be ill-formed:
./Main.cpp:9:10: error: invalid conversion from ‘int*’ to ‘long int’ [-fpermissive]
     cin>>h2>>w2;
          ^~
./Main.cpp:9:10: error: cannot bind rvalue ‘(long int)((int*)(& h2))’ to ‘long int&’
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:190:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’ <near match>
       operator>>(unsigned long& __n)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:190:7: note:   conversion of argument 1 would be ill-formed:
./Main.cpp:9:10: error: invalid conversion from ‘int*’ to ‘long unsigned int’ [-fpermissive]
     cin>>h2>>w2;
          ^~
./Main.cpp:9:10: error: cannot bind rvalue ‘(long unsigned int)((int*)(& h2))’ to ‘long unsigned int&’
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:195:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’ <near match>
       operator>>(long long& __n)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:195:7: note:   conversion of argument 1 would be ill-formed:
./Main.cpp:9:10: error: invalid conversion from ‘int*’ to ‘long long int’ [-fpermissive]
     cin>>h2>>w2;
          ^~
./Main.cpp:9:10: error: cannot bind rvalue ‘(long long int)((int*)(& h2))’ to ‘long long int&’
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:199:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’ <near match>
       operator>>(unsigned long long& __n)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:199:7: note:   conversion of argument 1 would be ill-formed:
./Main.cpp:9:10: error: invalid conversion from ‘int*’ to ‘long long unsigned int’ [-fpermissive]
     cin>>h2>>w2;
          ^~
./Main.cpp:9:10: error: cannot bind rvalue ‘(long long unsigned int)((int*)(& h2))’ to ‘long long unsigned int&’
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:235:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’ <near match>
       operator>>(void*& __p)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:235:7: note:   conversion of argument 1 would be ill-formed:
./Main.cpp:9:10: error: cannot bind non-const lvalue reference of type ‘void*&’ to an rvalue of type ‘void*’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:120:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’
       operator>>(__istream_type& (*__pf)(__istream_type&))
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:120:7: note:   no known conversion for argument 1 from ‘int [10000]’ to ‘std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)’ {aka ‘std::basic_istream<char>& (*)(std::basic_istream<char>&)’}
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:124:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__ios_type& (*)(std::basic_istream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>; std::basic_istream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]’
       operator>>(__ios_type& (*__pf)(__ios_type&))
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:124:7: note:   no known conversion for argument 1 from ‘int [10000]’ to ‘std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)’ {aka ‘std::basic_ios<char>& (*)(std::basic_ios<char>&)’}
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:131:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’
       operator>>(ios_base& (*__pf)(ios_base&))
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:131:7: note:   no known conversion for argument 1 from ‘int [10000]’ to ‘std::ios_base& (*)(std::ios_base&)’
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:214:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’
       operator>>(float& __f)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:214:7: note:   no known conversion for argument 1 from ‘int [10000]’ to ‘float&’
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:218:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’
       operator>>(double& __f)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:218:7: note:   no known conversion for argument 1 from ‘int [10000]’ to ‘double&’
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:222:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’
       operator>>(long double& __f)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:222:7: note:   no known conversion for argument 1 from ‘int [10000]’ to ‘long double&’
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:259:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]’
       operator>>(__streambuf_type* __sb);
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:259:7: note:   no known conversion for argument 1 from ‘int [10000]’ to ‘std::basic_istream<char>::__streambuf_type*’ {aka ‘std::basic_streambuf<char>*’}
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:53,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bitset:47,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:66,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.tcc:1465:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
     operator>>(basic_istream<_CharT, _Traits>& __in,
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.tcc:1465:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int [10000]’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:66,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bitset:1466:5: note: candidate: ‘template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::bitset<_Nb>&)’
     operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bitset:1466:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   mismatched types ‘std::bitset<_Nb>’ and ‘int [10000]’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:991,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/istream.tcc:931:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)’
     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/istream.tcc:931:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘int [10000]’)
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:756:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)’
     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:756:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   cannot convert ‘h2’ (type ‘int [10000]’) to type ‘unsigned char&’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:761:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)’
     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:761:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   cannot convert ‘h2’ (type ‘int [10000]’) to type ‘signed char&’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:991,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/istream.tcc:963:5: note: candidate: ‘template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)’
     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/istream.tcc:963:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   deduced conflicting types for parameter ‘_CharT2’ (‘char’ and ‘int’)
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:803:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)’
     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:803:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   cannot convert ‘h2’ (type ‘int [10000]’) to type ‘unsigned char*’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:808:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)’
     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/istream:808:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   cannot convert ‘h2’ (type ‘int [10000]’) to type ‘signed char*’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/complex:493:5: note: candidate: ‘template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_Tp>&)’
     operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/complex:493:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   mismatched types ‘std::complex<_Tp>’ and ‘int [10000]’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:72,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:71:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Resetiosflags)’
     operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:71:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   cannot convert ‘h2’ (type ‘int [10000]’) to type ‘std::_Resetiosflags’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:72,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:101:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setiosflags)’
     operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:101:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   cannot convert ‘h2’ (type ‘int [10000]’) to type ‘std::_Setiosflags’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:72,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:132:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setbase)’
     operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:132:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   cannot convert ‘h2’ (type ‘int [10000]’) to type ‘std::_Setbase’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:72,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:170:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setfill<_CharT>)’
     operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:170:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   mismatched types ‘std::_Setfill<_CharT>’ and ‘int*’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:72,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:200:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setprecision)’
     operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:200:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   cannot convert ‘h2’ (type ‘int [10000]’) to type ‘std::_Setprecision’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:72,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:230:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setw)’
     operator>>(basic_istream<_CharT, _Traits>& __is, _Setw __f)
     ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/iomanip:230:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   cannot convert ‘h2’ (type ‘int [10000]’) to type ‘std::_Setw’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:592,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/valarray_after.h:411:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::_BinClos<std::__shift_right, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)’
     _DEFINE_EXPR_BINARY_OPERATOR(>>, __shift_right)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:592,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/valarray_after.h:411:5: note: candidate: ‘template<class _Dom> std::_Expr<std::_BinClos<std::__shift_right, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)’
     _DEFINE_EXPR_BINARY_OPERATOR(>>, __shift_right)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:592,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/valarray_after.h:411:5: note: candidate: ‘template<class _Dom> std::_Expr<std::_BinClos<std::__shift_right, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const typename _Dom::value_type&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)’
     _DEFINE_EXPR_BINARY_OPERATOR(>>, __shift_right)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘int [10000]’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:592,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/valarray_after.h:411:5: note: candidate: ‘template<class _Dom> std::_Expr<std::_BinClos<std::__shift_right, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::valarray<typename _Dom::value_type>&)’
     _DEFINE_EXPR_BINARY_OPERATOR(>>, __shift_right)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:592,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/valarray_after.h:411:5: note: candidate: ‘template<class _Dom> std::_Expr<std::_BinClos<std::__shift_right, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const std::valarray<typename _Dom::value_type>&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)’
     _DEFINE_EXPR_BINARY_OPERATOR(>>, __shift_right)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘int [10000]’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1181:1: note: candidate: ‘template<class _Tp> std::_Expr<std::_BinClos<std::__shift_right, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__shift_right, _Tp>::result_type> std::operator>>(const std::valarray<_Tp>&, const std::valarray<_Tp>&)’
 _DEFINE_BINARY_OPERATOR(>>, __shift_right)
 ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1181:1: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘const std::valarray<_Tp>’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1181:1: note: candidate: ‘template<class _Tp> std::_Expr<std::_BinClos<std::__shift_right, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__shift_right, _Tp>::result_type> std::operator>>(const std::valarray<_Tp>&, const _Tp&)’
 _DEFINE_BINARY_OPERATOR(>>, __shift_right)
 ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1181:1: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘const std::valarray<_Tp>’
     cin>>h2>>w2;
          ^~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1181:1: note: candidate: ‘template<class _Tp> std::_Expr<std::_BinClos<std::__shift_right, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__shift_right, _Tp>::result_type> std::operator>>(const _Tp&, const std::valarray<_Tp>&)’
 _DEFINE_BINARY_OPERATOR(>>, __shift_right)
 ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1181:1: note:   template argument deduction/substitution failed:
./Main.cpp:9:10: note:   mismatched types ‘const std::valarray<_Tp>’ and ‘int [10000]’
     cin>>h2>>w2;
          ^~
./Main.cpp:11:12: error: ‘h1’ was not declared in this scope
       if(h<h1[i] || w<w1[i])
            ^~
./Main.cpp:11:12: note: suggested alternative: ‘h2’
       if(h<h1[i] || w<w1[i])
            ^~
            h2
./Main.cpp:13:12: error: ‘h1’ was not declared in this scope
       a=h2-h1[i];
            ^~
./Main.cpp:13:12: note: suggested alternative: ‘h2’
       a=h2-h1[i];
            ^~
            h2

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #