F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_34588375_8792.cpp: In function 'long long int DP(long long int, long long int)':
0_0_34588375_8792.cpp:8:8: error: reference to 'map' is ambiguous
     if(map[x][y]==0||dp[x][y])return dp[x][y];  //map肯定不能为0撒,这还要意思问我为什么?为0就不能动看,还有DP不为0就是已经确定数量了
        ^
0_0_34588375_8792.cpp:3:9: note: candidates are: long long int map [44][44]
 __int64 map[44][44],dp[44][44],n;  //dp是记录路径数量的
         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_34588375_8792.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_34588375_8792.cpp:9:10: error: reference to 'map' is ambiguous
     if(x+map[x][y]<n)  //题目说了只能走直线,这样方便多了,这样就是要用两if来分别横着和竖着走了
          ^
0_0_34588375_8792.cpp:3:9: note: candidates are: long long int map [44][44]
 __int64 map[44][44],dp[44][44],n;  //dp是记录路径数量的
         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_34588375_8792.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_34588375_8792.cpp:10:20: error: reference to 'map' is ambiguous
     dp[x][y]+=DP(x+map[x][y],y);  //当前点的dp要加上走到的那一点的dp,就把DP看成求出里面坐标的dp值的函数咯
                    ^
0_0_34588375_8792.cpp:3:9: note: candidates are: long long int map [44][44]
 __int64 map[44][44],dp[44][44],n;  //dp是记录路径数量的
         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_34588375_8792.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_34588375_8792.cpp:11:10: error: reference to 'map' is ambiguous
     if(y+map[x][y]<n)
          ^
0_0_34588375_8792.cpp:3:9: note: candidates are: long long int map [44][44]
 __int64 map[44][44],dp[44][44],n;  //dp是记录路径数量的
         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_34588375_8792.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_34588375_8792.cpp:12:22: error: reference to 'map' is ambiguous
     dp[x][y]+=DP(x,y+map[x][y]);
                      ^
0_0_34588375_8792.cpp:3:9: note: candidates are: long long int map [44][44]
 __int64 map[44][44],dp[44][44],n;  //dp是记录路径数量的
         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_34588375_8792.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_34588375_8792.cpp: In function 'int main()':
0_0_34588375_8792.cpp:24:32: error: reference to 'map' is ambiguous
                 scanf("%c",&c),map[i][j]=c-48,dp[i][j]=0;
                                ^
0_0_34588375_8792.cpp:3:9: note: candidates are: long long int map [44][44]
 __int64 map[44][44],dp[44][44],n;  //dp是记录路径数量的
         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_34588375_8792.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 21:43:55, Gzip enabled