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_39975644_28393.cpp: In function 'int main()':
0_0_39975644_28393.cpp:99:27: error: invalid initialization of reference of type 'const std::vector<std::vector<double> >&' from expression of type 'double [105][105]'
   99 |         double sum = prim(math, len);
      |                           ^~~~
0_0_39975644_28393.cpp:26:43: note: in passing argument 1 of 'double prim(const std::vector<std::vector<double> >&, int)'
   26 | double prim(const vector<vector<double>>& mat, int n) {
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
0_0_39975644_28393.cpp:118:25: error: invalid initialization of reference of type 'const std::vector<std::vector<double> >&' from expression of type 'double [105][105]'
  118 |             sum += prim(matx, num[i]);
      |                         ^~~~
0_0_39975644_28393.cpp:26:43: note: in passing argument 1 of 'double prim(const std::vector<std::vector<double> >&, int)'
   26 | double prim(const vector<vector<double>>& mat, int n) {
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-04-15 16:55:57, Gzip enabled