记录详情

Compile Error

/in/foo.cc: In function 'void prim()':
/in/foo.cc:15:13: error: reference to 'map' is ambiguous
   dist[i] = map[1][i];
             ^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
 long map[302][302];
      ^~~
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:2:
/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:35:26: error: reference to 'map' is ambiguous
    if (!used[j]&&dist[j]>map[k][j]&&map[k][j]>0)
                          ^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
 long map[302][302];
      ^~~
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:2:
/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:35:37: error: reference to 'map' is ambiguous
    if (!used[j]&&dist[j]>map[k][j]&&map[k][j]>0)
                                     ^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
 long map[302][302];
      ^~~
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:2:
/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:36:15: error: reference to 'map' is ambiguous
     dist[j] = map[k][j];
               ^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
 long map[302][302];
      ^~~
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:2:
/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: In function 'int main()':
/in/foo.cc:45:16: error: reference to 'map' is ambiguous
   scanf("%ld",&map[i][n+1]);
                ^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
 long map[302][302];
      ^~~
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:2:
/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:46:3: error: reference to 'map' is ambiguous
   map[n+1][i] = map[i][n+1];
   ^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
 long map[302][302];
      ^~~
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:2:
/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:46:17: error: reference to 'map' is ambiguous
   map[n+1][i] = map[i][n+1];
                 ^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
 long map[302][302];
      ^~~
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:2:
/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:50:17: error: reference to 'map' is ambiguous
    scanf("%ld",&map[i][j]);
                 ^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
 long map[302][302];
      ^~~
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:2:
/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
           ^~~

信息

递交者
类型
递交
题目
新的开始
题目数据
下载
语言
C++
递交时间
2019-01-02 22:00:30
评测时间
2019-01-10 22:48:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes