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_16357278_6800.cpp: In function 'matrix multi(matrix&, matrix&)':
0_0_16357278_6800.cpp:23:14: error: invalid types 'int[int]' for array subscript
    temp.map[i][j]=0;
              ^
0_0_16357278_6800.cpp:25:15: error: invalid types 'int[int]' for array subscript
     temp.map[i][j]+=a.map[i][k]*b.map[k][j];
               ^
0_0_16357278_6800.cpp:25:28: error: invalid types 'int[int]' for array subscript
     temp.map[i][j]+=a.map[i][k]*b.map[k][j];
                            ^
0_0_16357278_6800.cpp:25:40: error: invalid types 'int[int]' for array subscript
     temp.map[i][j]+=a.map[i][k]*b.map[k][j];
                                        ^
0_0_16357278_6800.cpp:26:15: error: invalid types 'int[int]' for array subscript
     temp.map[i][j]%=M;
               ^
0_0_16357278_6800.cpp: In function 'int main()':
0_0_16357278_6800.cpp:37:41: error: 'memset' was not declared in this scope
   memset(mat[0].map,0,sizeof(mat[0].map));//×î³õµÄ¾ØÕó 
                                         ^
0_0_16357278_6800.cpp:47:20: error: invalid types 'int[std::map<int, int>::mapped_type {aka int}]' for array subscript
    mat[0].map[mp[a]][mp[b]]++;
                    ^
0_0_16357278_6800.cpp:62:27: error: invalid types 'int[std::map<int, int>::mapped_type {aka int}]' for array subscript
     ans+=mat[i].map[mp[v1]][mp[v2]];
                           ^


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-26 00:25:38, Gzip enabled