/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:13:16: error: reference to 'hash' is ambiguous
             if(hash[i]!=-1)
                ^~~~
/in/foo.cc:5:5: note: candidates are: int hash [30]
 int hash[30];
     ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:14:23: error: reference to 'hash' is ambiguous
                 cout<<hash[i]<<" ";
                       ^~~~
/in/foo.cc:5:5: note: candidates are: int hash [30]
 int hash[30];
     ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:18:8: error: reference to 'hash' is ambiguous
     if(hash[aa]!=-1&&hash[bb]!=-1&&hash[cc]!=-1){ // dou tians shang le 
        ^~~~
/in/foo.cc:5:5: note: candidates are: int hash [30]
 int hash[30];
     ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:18:22: error: reference to 'hash' is ambiguous
     if(hash[aa]!=-1&&hash[bb]!=-1&&hash[cc]!=-1){ // dou tians shang le 
                      ^~~~
/in/foo.cc:5:5: note: candidates are: int hash [30]
 int hash[30];
     ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:18:36: error: reference to 'hash' is ambiguous
     if(hash[aa]!=-1&&hash[bb]!=-1&&hash[cc]!=-1){ // dou tians shang le 
                                    ^~~~
/in/foo.cc:5:5: note: candidates are: int hash [30]
 int hash[30];
     ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:19:12: error: reference to 'hash' is ambiguous
         if(hash[aa]+hash[bb]==hash[cc]-d)
            ^~~~
/in/foo.cc:5:5: note: candidates are: int hash [30]
 int hash[30];
     ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:19:21: error: reference to 'hash' is ambiguous
         if(hash[aa]+hash[bb]==hash[cc]-d)
                     ^~~~
/in/foo.cc:5:5: note: candidates are: int hash [30]
 int hash[30];
     ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:19:31: error: reference to 'hash' is ambiguous
         if(hash[aa]+hash[bb]==hash[cc]-d)
                               ^~~~
/in/foo.cc:5:5: note: candidates are: int hash [30]
 int hash[30];
     ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:21:12: error: reference to 'hash' is ambiguous
         if(hash[aa]+hash[bb]==hash[cc]-d+n)
            ^~~~
/in/foo.cc:5:5: note: candidates are: int hash [30]
 int hash[30];
     ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:21:21: error: reference to 'hash' is ambiguous
         if(hash[aa]+hash[bb]==hash[cc]-d+n)
                     ^~~~
/in/foo.cc:5:5: note: candidates are: int hash [30]
 int hash[30];
     ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:21:31: error: reference to 'hash' is ambiguous
         if(hash[aa]+hash[bb]==hash[cc]-d+n)
                               ^~~~
/in/foo.cc:5:5: note: candidates are: 

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2018-04-03 22:06:09
评测时间
2018-04-03 22:06:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes