/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void check(int, int, int)':
/in/foo.cc:8:9: error: reference to 'map' is ambiguous
         map[cnt][cnt+1]=map[cnt+1][cnt]=0;
         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:8:25: error: reference to 'map' is ambiguous
         map[cnt][cnt+1]=map[cnt+1][cnt]=0;
                         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:10:9: error: reference to 'map' is ambiguous
         map[cnt][cnt+1]=map[cnt+1][cnt]=1;
         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:10:25: error: reference to 'map' is ambiguous
         map[cnt][cnt+1]=map[cnt+1][cnt]=1;
                         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:12:9: error: reference to 'map' is ambiguous
         map[cnt][cnt-1]=map[cnt-1][cnt]=0;
         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:12:25: error: reference to 'map' is ambiguous
         map[cnt][cnt-1]=map[cnt-1][cnt]=0;
                         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:14:9: error: reference to 'map' is ambiguous
         map[cnt][cnt-1]=map[cnt-1][cnt]=1;
         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:14:25: error: reference to 'map' is ambiguous
         map[cnt][cnt-1]=map[cnt-1][cnt]=1;
                         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:16:9: error: reference to 'map' is ambiguous
         map[cnt][cnt-m]=map[cnt-m][cnt]=0;
         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:16:25: error: reference to 'map' is ambiguous
         map[cnt][cnt-m]=map[cnt-m][cnt]=0;
                         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:18:9: error: reference to 'map' is ambiguous
         map[cnt][cnt-m]=map[cnt-m][cnt]=1;
         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:18:25: error: reference to 'map' is ambiguous
         map[cnt][cnt-m]=map[cnt-m][cnt]=1;
                         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:20:9: error: reference to 'map' is ambiguous
         map[cnt][cnt+m]=map[cnt+m][cnt]=0;
         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:20:25: error: reference to 'map' is ambiguous
         map[cnt][cnt+m]=map[cnt+m][cnt]=0;
                         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:22:9: error: reference to 'map' is ambiguous
         map[cnt][cnt+m]=map[cnt+m][cnt]=1;
         ^~~
/in/foo.cc:4:5: note: candidates are: int map [405][405]
 int map[N][N],n,m;
     ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:2

信息

递交者
类型
递交
题目
P1406 古韵之鹊桥相会
语言
C++
递交时间
2020-04-28 18:46:45
评测时间
2020-04-28 18:46:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes