/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int dfs()':
/in/foo.cc:19:16: warning: array subscript has type 'char' [-Wchar-subscripts]
  if(vis[ InVar ]) return -1;
                ^
/in/foo.cc:20:13: warning: array subscript has type 'char' [-Wchar-subscripts]
  vis[ InVar ] = 1;
             ^
/in/foo.cc:22:33: error: reference to 'end' is ambiguous
  int add = (start[cur] != -1 && end[cur] == -1);
                                 ^~~
/in/foo.cc:10:17: note: candidates are: int end [128]
 int start[128], end[128];
                 ^~~
In file included from /usr/include/c++/6/utility:76:0,
                 from /usr/include/c++/6/algorithm:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^~~
/in/foo.cc:23:37: error: reference to 'end' is ambiguous
  int nparse = (start[cur] == -1 || (end[cur] != -1 && start[cur] > end[cur]));
                                     ^~~
/in/foo.cc:10:17: note: candidates are: int end [128]
 int start[128], end[128];
                 ^~~
In file included from /usr/include/c++/6/utility:76:0,
                 from /usr/include/c++/6/algorithm:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^~~
/in/foo.cc:23:68: error: reference to 'end' is ambiguous
  int nparse = (start[cur] == -1 || (end[cur] != -1 && start[cur] > end[cur]));
                                                                    ^~~
/in/foo.cc:10:17: note: candidates are: int end [128]
 int start[128], end[128];
                 ^~~
In file included from /usr/include/c++/6/utility:76:0,
                 from /usr/include/c++/6/algorithm:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^~~
/in/foo.cc:31:15: warning: array subscript has type 'char' [-Wchar-subscripts]
    vis[ InVar ] = 0;
               ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:75:24: error: reference to 'end' is ambiguous
     if(tmp2[0] == 'n') end[i] = -1; else sscanf(tmp2, "%d", &end[i]);
                        ^~~
/in/foo.cc:10:17: note: candidates are: int end [128]
 int start[128], end[128];
                 ^~~
In file included from /usr/include/c++/6/utility:76:0,
                 from /usr/include/c++/6/algorithm:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^~~
/in/foo.cc:75:62: error: reference to 'end' is ambiguous
     if(tmp2[0] == 'n') end[i] = -1; else sscanf(tmp2, "%d", &end[i]);
                                                              ^~~
/in/foo.cc:10:17: note: candidates are: int end [128]
 int start[128], end[128];
                 ^~~
In file included from /usr/include/c++/6/utility:76:0,
                 from /usr/include/c++/6/algorithm:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^~~

信息

递交者
类型
递交
题目
P2029 时间复杂度
语言
C++
递交时间
2017-11-13 15:14:21
评测时间
2017-11-13 15:14:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes