Submission #00155


ソースコード

ステータス

項目 データ
問題 0007 - イワシロ・イッツァ
ユーザー名 ei1733
投稿日時 2019-07-30 10:24:41
言語 C++17
状態 Compile Error
得点 0
ソースコード長 697 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:9:3: error: reference to ‘data’ is ambiguous
   data[0][0]=1;
   ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:16:9: error: reference to ‘data’ is ambiguous
         data[i+1][j]=data[i+1][j]+data[i][j];
         ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:16:22: error: reference to ‘data’ is ambiguous
         data[i+1][j]=data[i+1][j]+data[i][j];
                      ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:16:35: error: reference to ‘data’ is ambiguous
         data[i+1][j]=data[i+1][j]+data[i][j];
                                   ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:17:12: error: reference to ‘data’ is ambiguous
         if(data[i+1][j]>=MAX){
            ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:18:11: error: reference to ‘data’ is ambiguous
           data[i+1][j]=data[i+1][j]-MAX;
           ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:18:24: error: reference to ‘data’ is ambiguous
           data[i+1][j]=data[i+1][j]-MAX;
                        ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:22:9: error: reference to ‘data’ is ambiguous
         data[i+1][j+1]=data[i+1][j+1]+data[i][j];
         ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:22:24: error: reference to ‘data’ is ambiguous
         data[i+1][j+1]=data[i+1][j+1]+data[i][j];
                        ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:22:39: error: reference to ‘data’ is ambiguous
         data[i+1][j+1]=data[i+1][j+1]+data[i][j];
                                       ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:23:12: error: reference to ‘data’ is ambiguous
         if(data[i+1][j+1]>=MAX){
            ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:24:11: error: reference to ‘data’ is ambiguous
           data[i+1][j+1]=data[i+1][j+1]-MAX;
           ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:24:26: error: reference to ‘data’ is ambiguous
           data[i+1][j+1]=data[i+1][j+1]-MAX;
                          ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~
./Main.cpp:29:17: error: reference to ‘data’ is ambiguous
   printf("%d\n",data[N][M]);
                 ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 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/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
     data(initializer_list<_Tp> __il) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:309:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
     data(_Tp (&__array)[_Nm]) noexcept
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:299:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:289:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
     data(_Container& __cont) noexcept(noexcept(__cont.data()))
     ^~~~
./Main.cpp:6:11: note:                 ‘long long int data [1001][1001]’
 long long data[MAX_SIZE][MAX_SIZE];
           ^~~~

セット

セット 得点 Cases

テストケース

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