-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.txt
2424 lines (2424 loc) · 160 KB
/
errors.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
In file included from main.cpp:3:0:
funcs.hpp:121:36: error: ‘vector’ does not name a type
cv::Mat vector_to_Mat_double(const vector<double> v);
^
funcs.hpp:121:36: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
funcs.hpp:121:42: error: expected ‘,’ or ‘...’ before ‘<’ token
cv::Mat vector_to_Mat_double(const vector<double> v);
^
funcs.hpp:123:24: error: variable or field ‘write_mat_to_file’ declared void
void write_mat_to_file(ofstream & f, cv::Mat mat);
^
funcs.hpp:123:24: error: ‘ofstream’ was not declared in this scope
funcs.hpp:123:24: note: suggested alternative:
In file included from /usr/include/c++/4.8/bits/localefwd.h:41:0,
from /usr/include/c++/4.8/string:43,
from /usr/local/include/opencv2/core/cvstd.hpp:58,
from /usr/local/include/opencv2/core/base.hpp:56,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.hpp:5,
from main.cpp:1:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
In file included from main.cpp:3:0:
funcs.hpp:123:35: error: ‘f’ was not declared in this scope
void write_mat_to_file(ofstream & f, cv::Mat mat);
^
funcs.hpp:123:46: error: expected primary-expression before ‘mat’
void write_mat_to_file(ofstream & f, cv::Mat mat);
^
In file included from sim_funcs.cpp:4:0:
funcs.hpp:121:36: error: ‘vector’ does not name a type
cv::Mat vector_to_Mat_double(const vector<double> v);
^
funcs.hpp:121:36: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
funcs.hpp:121:42: error: expected ‘,’ or ‘...’ before ‘<’ token
cv::Mat vector_to_Mat_double(const vector<double> v);
^
funcs.hpp:123:24: error: variable or field ‘write_mat_to_file’ declared void
void write_mat_to_file(ofstream & f, cv::Mat mat);
^
funcs.hpp:123:24: error: ‘ofstream’ was not declared in this scope
funcs.hpp:123:24: note: suggested alternative:
In file included from /usr/include/c++/4.8/bits/localefwd.h:41:0,
from /usr/include/c++/4.8/string:43,
from /usr/local/include/opencv2/core/cvstd.hpp:58,
from /usr/local/include/opencv2/core/base.hpp:56,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
In file included from sim_funcs.cpp:4:0:
funcs.hpp:123:35: error: ‘f’ was not declared in this scope
void write_mat_to_file(ofstream & f, cv::Mat mat);
^
funcs.hpp:123:46: error: expected primary-expression before ‘mat’
void write_mat_to_file(ofstream & f, cv::Mat mat);
^
sim_funcs.cpp: In function ‘sBattery design_battery(cv::Mat, cv::Mat)’:
sim_funcs.cpp:33:90: error: ‘create_battery’ was not declared in this scope
return create_battery(cell, (int)actions.at<double>(1, 0), (int)actions.at<double>(2, 0));
^
sim_funcs.cpp: In function ‘sBattery create_battery(sCell, double, double)’:
sim_funcs.cpp:47:88: warning: narrowing conversion of ‘sConfigs’ from ‘double’ to ‘int’ inside { } is ill-formed in C++11 [-Wnarrowing]
sBattery battery = { cell, sConfigs, pConfigs, Cost, Mass, Volt, Cap, C, Imax, Energy };
^
sim_funcs.cpp:47:88: warning: narrowing conversion of ‘pConfigs’ from ‘double’ to ‘int’ inside { } is ill-formed in C++11 [-Wnarrowing]
sim_funcs.cpp: In function ‘sMotor design_motor(cv::Mat, cv::Mat)’:
sim_funcs.cpp:65:6: warning: unused variable ‘num’ [-Wunused-variable]
int num = row;
^
sim_funcs.cpp: In function ‘sProp design_prop(cv::Mat, cv::Mat)’:
sim_funcs.cpp:109:83: error: ‘create_prop’ was not declared in this scope
return create_prop(diameter, angleRoot, angleTip, chordRoot, chordTip, mass, cost);
^
sim_funcs.cpp: In function ‘sRod design_rod(cv::Mat, cv::Mat, cv::Mat, sProp)’:
sim_funcs.cpp:142:52: error: ‘create_rod’ was not declared in this scope
return create_rod(mat, length, diameter, thickness);
^
sim_funcs.cpp: In function ‘sRod create_rod(sMaterial, double, double, double)’:
sim_funcs.cpp:158:7: warning: unused variable ‘rod’ [-Wunused-variable]
sRod rod = { mat, Length, Dia, Thick, Area, Amoment, Stiffness, Vol, Mass, Cost, planArea };
^
sim_funcs.cpp:159:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
sim_funcs.cpp: In function ‘sSys design_sys(sBattery, sMotor, sProp, sRod)’:
sim_funcs.cpp:166:27: error: ‘resFrameWidth’ was not declared in this scope
double resPlanArea = pow(resFrameWidth, 2);
^
sim_funcs.cpp:177:31: error: ‘foil’ was not declared in this scope
sSys sys = { battery, motor, foil, prop, rod, res, mass, planArea, natFreq, cost, power };
^
sim_funcs.cpp: In function ‘void update_states(std::vector<std::vector<double, std::allocator<double> >*>, sPerf, cv::Mat, sSys)’:
sim_funcs.cpp:192:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
sim_funcs.cpp:192:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:192:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:192:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
sim_funcs.cpp:193:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(1) = std::max(constraints.ATD(2, 0), 0);
^
sim_funcs.cpp:193:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:193:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(1) = std::max(constraints.ATD(2, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:193:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(1) = std::max(constraints.ATD(2, 0), 0);
^
sim_funcs.cpp:194:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(2) = std::max(constraints.ATD(3, 0), 0);
^
sim_funcs.cpp:194:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:194:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(2) = std::max(constraints.ATD(3, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:194:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(2) = std::max(constraints.ATD(3, 0), 0);
^
sim_funcs.cpp:196:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
sim_funcs.cpp:196:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:196:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:196:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
sim_funcs.cpp:197:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(1) = std::max(constraints.ATD(4, 0), 0);
^
sim_funcs.cpp:197:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:197:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(1) = std::max(constraints.ATD(4, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:197:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(1) = std::max(constraints.ATD(4, 0), 0);
^
sim_funcs.cpp:198:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(2) = std::max(constraints.ATD(5, 0), 0);
^
sim_funcs.cpp:198:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:198:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(2) = std::max(constraints.ATD(5, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:198:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(2) = std::max(constraints.ATD(5, 0), 0);
^
sim_funcs.cpp:205:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
sim_funcs.cpp:205:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:205:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:205:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
sim_funcs.cpp:206:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(1) = std::max(constraints.ATD(4, 0), 0);
^
sim_funcs.cpp:206:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:206:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(1) = std::max(constraints.ATD(4, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:206:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(1) = std::max(constraints.ATD(4, 0), 0);
^
sim_funcs.cpp:207:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(2) = std::max(constraints.ATD(7, 0), 0);
^
sim_funcs.cpp:207:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:207:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(2) = std::max(constraints.ATD(7, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:207:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(2) = std::max(constraints.ATD(7, 0), 0);
^
sim_funcs.cpp:211:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
sim_funcs.cpp:211:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:211:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:211:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(0) = std::max(constraints.ATD(1, 0), 0);
^
sim_funcs.cpp:212:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(1) = std::max(constraints.ATD(6, 0), 0);
^
sim_funcs.cpp:212:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:212:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(1) = std::max(constraints.ATD(6, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:212:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(1) = std::max(constraints.ATD(6, 0), 0);
^
sim_funcs.cpp:213:62: error: no matching function for call to ‘max(const double&, int)’
statesPtrs[ag]->at(2) = std::max(constraints.ATD(7, 0), 0);
^
sim_funcs.cpp:213:62: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:213:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(2) = std::max(constraints.ATD(7, 0), 0);
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:213:62: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘int’)
statesPtrs[ag]->at(2) = std::max(constraints.ATD(7, 0), 0);
^
sim_funcs.cpp: In function ‘cv::Mat get_actions(int, std::vector<std::vector<double, std::allocator<double> > > (*)(int))’:
sim_funcs.cpp:234:48: error: cannot convert ‘std::vector<double, std::allocator<double> >’ to ‘int’ for argument ‘1’ to ‘cv::Mat vector_to_Mat_double(int)’
max_double(vector_to_Mat_double(outputs[ag]), actionTemp);
^
sim_funcs.cpp: In function ‘void write_propfile(sProp, sFoil)’:
sim_funcs.cpp:268:41: error: ‘const sFoil’ has no member named ‘Rexp’
propfile << foil.Reref << " " << foil.Rexp << "\n\n";
^
sim_funcs.cpp:272:22: error: ‘n’ was not declared in this scope
for (int i =0; i < n; i++)
^
sim_funcs.cpp: In function ‘cv::Mat calc_constraints(sSys, sPerf, int)’:
sim_funcs.cpp:292:25: error: cannot convert ‘cv::MatExpr’ to ‘double’ in assignment
constraints.ATD(1, 0) = 10*(1-hover.thrust/thrustReq); // factor of 10 arbitrary
^
sim_funcs.cpp:293:25: error: cannot convert ‘cv::MatExpr’ to ‘double’ in assignment
constraints.ATD(2, 0) = (4*hover.amps)/sys.battery.Imax - 1.0; // perf is from EACH motor
^
sim_funcs.cpp:294:25: error: cannot convert ‘cv::MatExpr’ to ‘double’ in assignment
constraints.ATD(3, 0) = hover.volts/sys.battery.Volt - 1.0;
^
sim_funcs.cpp:295:25: error: cannot convert ‘cv::MatExpr’ to ‘double’ in assignment
constraints.ATD(4, 0) = hover.amps/sys.motor.Imax - 1.0;
^
sim_funcs.cpp:296:25: error: cannot convert ‘cv::MatExpr’ to ‘double’ in assignment
constraints.ATD(5, 0) = hover.pelec/sys.motor.Pmax - 1.0;
^
sim_funcs.cpp:297:33: error: cannot convert ‘cv::MatExpr’ to ‘double’ in initialization
double forcedFreq = hover.rpm/60.0;
^
sim_funcs.cpp:301:38: error: cannot convert ‘cv::MatExpr’ to ‘double’ in initialization
double defl = hover.thrust/sys.rod.Stiffness;
^
sim_funcs.cpp: In function ‘cv::Mat compute_rewards(int, sPenalty, sSys, sData, double&, double&, cv::Mat&, sPerf&)’:
sim_funcs.cpp:310:49: error: ‘calc_G’ was not declared in this scope
calc_G(penalty, sys, G, flightTime, constraints);
^
sim_funcs.cpp:314:3: error: ‘rewards’ was not declared in this scope
rewards = (cv::Mat)(cv::Mat::ones(NUMAGENTS, 1, CV_64F) * G);
^
sim_funcs.cpp:318:3: error: ‘rewards’ was not declared in this scope
rewards = cv::Mat::zeros(NUMAGENTS, 1, CV_64F);
^
sim_funcs.cpp:327:50: error: ‘counter_calc’ was not declared in this scope
avgCell, avgMotor, avgProp, avgFoil, avgRod);
^
sim_funcs.cpp:335:47: error: ‘battery’ was not declared in this scope
counterBattery = create_battery(avgCell, battery.sConfigs, battery.pConfigs);
^
sim_funcs.cpp:344:50: error: ‘prop’ was not declared in this scope
counterProp = create_prop(avgProp.diameter, prop.angleRoot, prop.angleTip, prop.chordRoot, prop.chordTip);
^
sim_funcs.cpp:359:42: error: ‘rod’ was not declared in this scope
counterRod = create_rod(avgRod.mat, rod.Length, rod.Dia, rod.Thick);
^
In file included from sim_funcs.cpp:4:0:
funcs.hpp:28:21: error: expected primary-expression before ‘double’
#define ATD(i,j) at<double>(i,j)
^
sim_funcs.cpp:386:12: note: in expansion of macro ‘ATD’
rewards.ATD(ag, 0) = G - calc_G(penalty, counterSys);
^
funcs.hpp:28:21: error: expected ‘;’ before ‘double’
#define ATD(i,j) at<double>(i,j)
^
sim_funcs.cpp:386:12: note: in expansion of macro ‘ATD’
rewards.ATD(ag, 0) = G - calc_G(penalty, counterSys);
^
sim_funcs.cpp:389:9: error: ‘rewards’ was not declared in this scope
return rewards;
^
sim_funcs.cpp: In function ‘double calc_G(sPenalty, sSys)’:
sim_funcs.cpp:395:60: error: too many arguments to function ‘double calc_G(sPenalty, sSys)’
return calc_G(penalty, sys, flightTime, constraints, hover);
^
sim_funcs.cpp:392:8: note: declared here
double calc_G(const sPenalty penalty, const sSys sys)
^
sim_funcs.cpp: In function ‘double calc_G(sPenalty, sSys, double&, cv::Mat&, sPerf&)’:
sim_funcs.cpp:404:24: error: ‘calc_hover’ was not declared in this scope
hover = calc_hover(sys);
^
sim_funcs.cpp:405:45: error: ‘fail’ was not declared in this scope
constraints = calc_constraints(sys, hover, fail);
^
sim_funcs.cpp:407:13: error: cannot convert ‘cv::MatExpr’ to ‘double’ in assignment
flightTime = sys.battery.Energy/(4.0*hover.pelec);
^
sim_funcs.cpp:416:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < constraints.total(); i++)
^
sim_funcs.cpp:428:69: error: no matching function for call to ‘cv::Mat::zeros(cv::Size, int, int)’
cv::Mat conRewards = cv::Mat::zeros(constraints.size(), 1, CV_64F);
^
sim_funcs.cpp:428:69: note: candidates are:
In file included from /usr/local/include/opencv2/core.hpp:59:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/mat.hpp:1220:20: note: static cv::MatExpr cv::Mat::zeros(int, int, int)
static MatExpr zeros(int rows, int cols, int type);
^
/usr/local/include/opencv2/core/mat.hpp:1220:20: note: no known conversion for argument 1 from ‘cv::Size’ to ‘int’
/usr/local/include/opencv2/core/mat.hpp:1226:20: note: static cv::MatExpr cv::Mat::zeros(cv::Size, int)
static MatExpr zeros(Size size, int type);
^
/usr/local/include/opencv2/core/mat.hpp:1226:20: note: candidate expects 2 arguments, 3 provided
/usr/local/include/opencv2/core/mat.hpp:1233:20: note: static cv::MatExpr cv::Mat::zeros(int, const int*, int)
static MatExpr zeros(int ndims, const int* sz, int type);
^
/usr/local/include/opencv2/core/mat.hpp:1233:20: note: no known conversion for argument 1 from ‘cv::Size’ to ‘int’
sim_funcs.cpp:429:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < constraints.total(); i++)
^
sim_funcs.cpp:438:23: error: no match for ‘operator+’ (operand types are ‘const double’ and ‘cv::Scalar’)
G = penalty.death + sum(conRewards);
^
sim_funcs.cpp:438:23: note: candidates are:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8/algorithm:61,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator.h:333:5: note: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)
operator+(typename reverse_iterator<_Iterator>::difference_type __n,
^
/usr/include/c++/4.8/bits/stl_iterator.h:333:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: ‘cv::Scalar’ is not derived from ‘const std::reverse_iterator<_Iterator>’
G = penalty.death + sum(conRewards);
^
In file included from /usr/include/c++/4.8/string:52:0,
from /usr/local/include/opencv2/core/cvstd.hpp:58,
from /usr/local/include/opencv2/core/base.hpp:56,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/basic_string.h:2365:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/4.8/bits/basic_string.h:2365:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const std::basic_string<_CharT, _Traits, _Alloc>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/include/c++/4.8/string:53:0,
from /usr/local/include/opencv2/core/cvstd.hpp:58,
from /usr/local/include/opencv2/core/base.hpp:56,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/basic_string.tcc:692:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator+(const _CharT* __lhs,
^
/usr/include/c++/4.8/bits/basic_string.tcc:692:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const _CharT*’ and ‘double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/include/c++/4.8/string:53:0,
from /usr/local/include/opencv2/core/cvstd.hpp:58,
from /usr/local/include/opencv2/core/base.hpp:56,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/basic_string.tcc:708:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
^
/usr/include/c++/4.8/bits/basic_string.tcc:708:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: ‘cv::Scalar’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>’
G = penalty.death + sum(conRewards);
^
In file included from /usr/include/c++/4.8/string:52:0,
from /usr/local/include/opencv2/core/cvstd.hpp:58,
from /usr/local/include/opencv2/core/base.hpp:56,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/basic_string.h:2402:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/4.8/bits/basic_string.h:2402:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const std::basic_string<_CharT, _Traits, _Alloc>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/include/c++/4.8/string:52:0,
from /usr/local/include/opencv2/core/cvstd.hpp:58,
from /usr/local/include/opencv2/core/base.hpp:56,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/basic_string.h:2418:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
^
/usr/include/c++/4.8/bits/basic_string.h:2418:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const std::basic_string<_CharT, _Traits, _Alloc>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/include/c++/4.8/vector:65:0,
from /usr/local/include/opencv2/core/types.hpp:53,
from /usr/local/include/opencv2/core.hpp:58,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_bvector.h:293:3: note: std::_Bit_iterator std::operator+(std::ptrdiff_t, const std::_Bit_iterator&)
operator+(ptrdiff_t __n, const _Bit_iterator& __x)
^
/usr/include/c++/4.8/bits/stl_bvector.h:293:3: note: no known conversion for argument 2 from ‘cv::Scalar’ to ‘const std::_Bit_iterator&’
/usr/include/c++/4.8/bits/stl_bvector.h:379:3: note: std::_Bit_const_iterator std::operator+(std::ptrdiff_t, const std::_Bit_const_iterator&)
operator+(ptrdiff_t __n, const _Bit_const_iterator& __x)
^
/usr/include/c++/4.8/bits/stl_bvector.h:379:3: note: no known conversion for argument 2 from ‘cv::Scalar’ to ‘const std::_Bit_const_iterator&’
In file included from /usr/local/include/opencv2/core/cvstd.inl.hpp:48:0,
from /usr/local/include/opencv2/core.hpp:3175,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/complex:324:5: note: template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&, const std::complex<_Tp>&)
operator+(const complex<_Tp>& __x, const complex<_Tp>& __y)
^
/usr/include/c++/4.8/complex:324:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const std::complex<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core/cvstd.inl.hpp:48:0,
from /usr/local/include/opencv2/core.hpp:3175,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/complex:333:5: note: template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&, const _Tp&)
operator+(const complex<_Tp>& __x, const _Tp& __y)
^
/usr/include/c++/4.8/complex:333:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const std::complex<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core/cvstd.inl.hpp:48:0,
from /usr/local/include/opencv2/core.hpp:3175,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/complex:342:5: note: template<class _Tp> std::complex<_Tp> std::operator+(const _Tp&, const std::complex<_Tp>&)
operator+(const _Tp& __x, const complex<_Tp>& __y)
^
/usr/include/c++/4.8/complex:342:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: ‘cv::Scalar’ is not derived from ‘const std::complex<_Tp>’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core/cvstd.inl.hpp:48:0,
from /usr/local/include/opencv2/core.hpp:3175,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/complex:443:5: note: template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&)
operator+(const complex<_Tp>& __x)
^
/usr/include/c++/4.8/complex:443:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const std::complex<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core/mat.hpp:3440:0,
from /usr/local/include/opencv2/core.hpp:59,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/mat.inl.hpp:2778:19: note: template<class _Tp> cv::MatIterator_<_Tp> cv::operator+(ptrdiff_t, const cv::MatIterator_<_Tp>&)
MatIterator_<_Tp> operator + (ptrdiff_t ofs, const MatIterator_<_Tp>& a)
^
/usr/local/include/opencv2/core/mat.inl.hpp:2778:19: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: ‘cv::Scalar’ is not derived from ‘const cv::MatIterator_<_Tp>’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core/mat.hpp:3440:0,
from /usr/local/include/opencv2/core.hpp:59,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/mat.inl.hpp:2771:19: note: template<class _Tp> cv::MatIterator_<_Tp> cv::operator+(const cv::MatIterator_<_Tp>&, ptrdiff_t)
MatIterator_<_Tp> operator + (const MatIterator_<_Tp>& a, ptrdiff_t ofs)
^
/usr/local/include/opencv2/core/mat.inl.hpp:2771:19: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::MatIterator_<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core/mat.hpp:3440:0,
from /usr/local/include/opencv2/core.hpp:59,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/mat.inl.hpp:2641:24: note: template<class _Tp> cv::MatConstIterator_<_Tp> cv::operator+(ptrdiff_t, const cv::MatConstIterator_<_Tp>&)
MatConstIterator_<_Tp> operator + (ptrdiff_t ofs, const MatConstIterator_<_Tp>& a)
^
/usr/local/include/opencv2/core/mat.inl.hpp:2641:24: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: ‘cv::Scalar’ is not derived from ‘const cv::MatConstIterator_<_Tp>’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core/mat.hpp:3440:0,
from /usr/local/include/opencv2/core.hpp:59,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/mat.inl.hpp:2634:24: note: template<class _Tp> cv::MatConstIterator_<_Tp> cv::operator+(const cv::MatConstIterator_<_Tp>&, ptrdiff_t)
MatConstIterator_<_Tp> operator + (const MatConstIterator_<_Tp>& a, ptrdiff_t ofs)
^
/usr/local/include/opencv2/core/mat.inl.hpp:2634:24: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::MatConstIterator_<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core/mat.hpp:3440:0,
from /usr/local/include/opencv2/core.hpp:59,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/mat.inl.hpp:2493:18: note: cv::MatConstIterator cv::operator+(ptrdiff_t, const cv::MatConstIterator&)
MatConstIterator operator + (ptrdiff_t ofs, const MatConstIterator& a)
^
/usr/local/include/opencv2/core/mat.inl.hpp:2493:18: note: no known conversion for argument 2 from ‘cv::Scalar’ to ‘const cv::MatConstIterator&’
/usr/local/include/opencv2/core/mat.inl.hpp:2486:18: note: cv::MatConstIterator cv::operator+(const cv::MatConstIterator&, ptrdiff_t)
MatConstIterator operator + (const MatConstIterator& a, ptrdiff_t ofs)
^
/usr/local/include/opencv2/core/mat.inl.hpp:2486:18: note: no known conversion for argument 1 from ‘const double’ to ‘const cv::MatConstIterator&’
In file included from /usr/local/include/opencv2/core.hpp:59:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/mat.hpp:3340:20: note: cv::MatExpr cv::operator+(const cv::MatExpr&, const cv::MatExpr&)
CV_EXPORTS MatExpr operator + (const MatExpr& e1, const MatExpr& e2);
^
/usr/local/include/opencv2/core/mat.hpp:3340:20: note: no known conversion for argument 1 from ‘const double’ to ‘const cv::MatExpr&’
/usr/local/include/opencv2/core/mat.hpp:3339:20: note: cv::MatExpr cv::operator+(const Scalar&, const cv::MatExpr&)
CV_EXPORTS MatExpr operator + (const Scalar& s, const MatExpr& e);
^
/usr/local/include/opencv2/core/mat.hpp:3339:20: note: no known conversion for argument 2 from ‘cv::Scalar’ to ‘const cv::MatExpr&’
/usr/local/include/opencv2/core/mat.hpp:3338:20: note: cv::MatExpr cv::operator+(const cv::MatExpr&, const Scalar&)
CV_EXPORTS MatExpr operator + (const MatExpr& e, const Scalar& s);
^
/usr/local/include/opencv2/core/mat.hpp:3338:20: note: no known conversion for argument 1 from ‘const double’ to ‘const cv::MatExpr&’
/usr/local/include/opencv2/core/mat.hpp:3337:20: note: cv::MatExpr cv::operator+(const cv::Mat&, const cv::MatExpr&)
CV_EXPORTS MatExpr operator + (const Mat& m, const MatExpr& e);
^
/usr/local/include/opencv2/core/mat.hpp:3337:20: note: no known conversion for argument 1 from ‘const double’ to ‘const cv::Mat&’
/usr/local/include/opencv2/core/mat.hpp:3336:20: note: cv::MatExpr cv::operator+(const cv::MatExpr&, const cv::Mat&)
CV_EXPORTS MatExpr operator + (const MatExpr& e, const Mat& m);
^
/usr/local/include/opencv2/core/mat.hpp:3336:20: note: no known conversion for argument 1 from ‘const double’ to ‘const cv::MatExpr&’
/usr/local/include/opencv2/core/mat.hpp:3335:20: note: cv::MatExpr cv::operator+(const Scalar&, const cv::Mat&)
CV_EXPORTS MatExpr operator + (const Scalar& s, const Mat& a);
^
/usr/local/include/opencv2/core/mat.hpp:3335:20: note: no known conversion for argument 2 from ‘cv::Scalar’ to ‘const cv::Mat&’
/usr/local/include/opencv2/core/mat.hpp:3334:20: note: cv::MatExpr cv::operator+(const cv::Mat&, const Scalar&)
CV_EXPORTS MatExpr operator + (const Mat& a, const Scalar& s);
^
/usr/local/include/opencv2/core/mat.hpp:3334:20: note: no known conversion for argument 1 from ‘const double’ to ‘const cv::Mat&’
/usr/local/include/opencv2/core/mat.hpp:3333:20: note: cv::MatExpr cv::operator+(const cv::Mat&, const cv::Mat&)
CV_EXPORTS MatExpr operator + (const Mat& a, const Mat& b);
^
/usr/local/include/opencv2/core/mat.hpp:3333:20: note: no known conversion for argument 1 from ‘const double’ to ‘const cv::Mat&’
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/types.hpp:2052:14: note: template<class _Tp> cv::Scalar_<_Tp> cv::operator+(const cv::Scalar_<_Tp>&, const cv::Scalar_<_Tp>&)
Scalar_<_Tp> operator + (const Scalar_<_Tp>& a, const Scalar_<_Tp>& b)
^
/usr/local/include/opencv2/core/types.hpp:2052:14: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::Scalar_<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/types.hpp:1918:7: note: cv::Range cv::operator+(int, const cv::Range&)
Range operator + (int delta, const Range& r1)
^
/usr/local/include/opencv2/core/types.hpp:1918:7: note: no known conversion for argument 2 from ‘cv::Scalar’ to ‘const cv::Range&’
/usr/local/include/opencv2/core/types.hpp:1912:7: note: cv::Range cv::operator+(const cv::Range&, int)
Range operator + (const Range& r1, int delta)
^
/usr/local/include/opencv2/core/types.hpp:1912:7: note: no known conversion for argument 1 from ‘const double’ to ‘const cv::Range&’
/usr/local/include/opencv2/core/types.hpp:1816:12: note: template<class _Tp> cv::Rect_<_Tp> cv::operator+(const cv::Rect_<_Tp>&, const cv::Size_<_Tp>&)
Rect_<_Tp> operator + (const Rect_<_Tp>& a, const Size_<_Tp>& b)
^
/usr/local/include/opencv2/core/types.hpp:1816:12: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::Rect_<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/types.hpp:1804:12: note: template<class _Tp> cv::Rect_<_Tp> cv::operator+(const cv::Rect_<_Tp>&, const cv::Point_<_Tp>&)
Rect_<_Tp> operator + (const Rect_<_Tp>& a, const Point_<_Tp>& b)
^
/usr/local/include/opencv2/core/types.hpp:1804:12: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::Rect_<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/types.hpp:1622:12: note: template<class _Tp> cv::Size_<_Tp> cv::operator+(const cv::Size_<_Tp>&, const cv::Size_<_Tp>&)
Size_<_Tp> operator + (const Size_<_Tp>& a, const Size_<_Tp>& b)
^
/usr/local/include/opencv2/core/types.hpp:1622:12: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::Size_<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/types.hpp:1452:14: note: template<class _Tp> cv::Point3_<_Tp> cv::operator+(const cv::Point3_<_Tp>&, const cv::Point3_<_Tp>&)
Point3_<_Tp> operator + (const Point3_<_Tp>& a, const Point3_<_Tp>& b)
^
/usr/local/include/opencv2/core/types.hpp:1452:14: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::Point3_<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/types.hpp:1208:13: note: template<class _Tp> cv::Point_<_Tp> cv::operator+(const cv::Point_<_Tp>&, const cv::Point_<_Tp>&)
Point_<_Tp> operator + (const Point_<_Tp>& a, const Point_<_Tp>& b)
^
/usr/local/include/opencv2/core/types.hpp:1208:13: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::Point_<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/types.hpp:988:14: note: template<class _Tp> cv::Complex<_Tp> cv::operator+(_Tp, const cv::Complex<_Tp>&)
Complex<_Tp> operator + (_Tp b, const Complex<_Tp>& a)
^
/usr/local/include/opencv2/core/types.hpp:988:14: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: ‘cv::Scalar’ is not derived from ‘const cv::Complex<_Tp>’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/types.hpp:978:14: note: template<class _Tp> cv::Complex<_Tp> cv::operator+(const cv::Complex<_Tp>&, _Tp)
Complex<_Tp> operator + (const Complex<_Tp>& a, _Tp b)
^
/usr/local/include/opencv2/core/types.hpp:978:14: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::Complex<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/types.hpp:928:14: note: template<class _Tp> cv::Complex<_Tp> cv::operator+(const cv::Complex<_Tp>&, const cv::Complex<_Tp>&)
Complex<_Tp> operator + (const Complex<_Tp>& a, const Complex<_Tp>& b)
^
/usr/local/include/opencv2/core/types.hpp:928:14: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::Complex<_Tp>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core.hpp:57:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/matx.hpp:1265:14: note: template<class _Tp, int cn> cv::Vec<_Tp, m> cv::operator+(const cv::Vec<_Tp, m>&, const cv::Vec<_Tp, m>&)
Vec<_Tp, cn> operator + (const Vec<_Tp, cn>& a, const Vec<_Tp, cn>& b)
^
/usr/local/include/opencv2/core/matx.hpp:1265:14: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::Vec<_Tp, m>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core.hpp:57:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/matx.hpp:1137:17: note: template<class _Tp, int m, int n> cv::Matx<_Tp, m, n> cv::operator+(const cv::Matx<_Tp, m, n>&, const cv::Matx<_Tp, m, n>&)
Matx<_Tp, m, n> operator + (const Matx<_Tp, m, n>& a, const Matx<_Tp, m, n>& b)
^
/usr/local/include/opencv2/core/matx.hpp:1137:17: note: template argument deduction/substitution failed:
sim_funcs.cpp:438:39: note: mismatched types ‘const cv::Matx<_Tp, m, n>’ and ‘const double’
G = penalty.death + sum(conRewards);
^
In file included from /usr/local/include/opencv2/core.hpp:3175:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/cvstd.inl.hpp:133:8: note: cv::String cv::operator+(const string&, const cv::String&)
String operator + (const std::string& lhs, const String& rhs)
^
/usr/local/include/opencv2/core/cvstd.inl.hpp:133:8: note: no known conversion for argument 1 from ‘const double’ to ‘const string& {aka const std::basic_string<char>&}’
/usr/local/include/opencv2/core/cvstd.inl.hpp:122:8: note: cv::String cv::operator+(const cv::String&, const string&)
String operator + (const String& lhs, const std::string& rhs)
^
/usr/local/include/opencv2/core/cvstd.inl.hpp:122:8: note: no known conversion for argument 2 from ‘cv::Scalar’ to ‘const string& {aka const std::basic_string<char>&}’
In file included from /usr/local/include/opencv2/core/base.hpp:56:0,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/cvstd.hpp:1019:8: note: cv::String cv::operator+(char, const cv::String&)
String operator + (char lhs, const String& rhs)
^
/usr/local/include/opencv2/core/cvstd.hpp:1019:8: note: no known conversion for argument 2 from ‘cv::Scalar’ to ‘const cv::String&’
/usr/local/include/opencv2/core/cvstd.hpp:1009:8: note: cv::String cv::operator+(const cv::String&, char)
String operator + (const String& lhs, char rhs)
^
/usr/local/include/opencv2/core/cvstd.hpp:1009:8: note: no known conversion for argument 2 from ‘cv::Scalar’ to ‘char’
/usr/local/include/opencv2/core/cvstd.hpp:998:8: note: cv::String cv::operator+(const char*, const cv::String&)
String operator + (const char* lhs, const String& rhs)
^
/usr/local/include/opencv2/core/cvstd.hpp:998:8: note: no known conversion for argument 1 from ‘const double’ to ‘const char*’
/usr/local/include/opencv2/core/cvstd.hpp:987:8: note: cv::String cv::operator+(const cv::String&, const char*)
String operator + (const String& lhs, const char* rhs)
^
/usr/local/include/opencv2/core/cvstd.hpp:987:8: note: no known conversion for argument 2 from ‘cv::Scalar’ to ‘const char*’
/usr/local/include/opencv2/core/cvstd.hpp:977:8: note: cv::String cv::operator+(const cv::String&, const cv::String&)
String operator + (const String& lhs, const String& rhs)
^
/usr/local/include/opencv2/core/cvstd.hpp:977:8: note: no known conversion for argument 2 from ‘cv::Scalar’ to ‘const cv::String&’
sim_funcs.cpp:442:69: error: no matching function for call to ‘cv::Mat::zeros(cv::Size, int, int)’
cv::Mat conRewards = cv::Mat::zeros(constraints.size(), 1, CV_64F);
^
sim_funcs.cpp:442:69: note: candidates are:
In file included from /usr/local/include/opencv2/core.hpp:59:0,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/local/include/opencv2/core/mat.hpp:1220:20: note: static cv::MatExpr cv::Mat::zeros(int, int, int)
static MatExpr zeros(int rows, int cols, int type);
^
/usr/local/include/opencv2/core/mat.hpp:1220:20: note: no known conversion for argument 1 from ‘cv::Size’ to ‘int’
/usr/local/include/opencv2/core/mat.hpp:1226:20: note: static cv::MatExpr cv::Mat::zeros(cv::Size, int)
static MatExpr zeros(Size size, int type);
^
/usr/local/include/opencv2/core/mat.hpp:1226:20: note: candidate expects 2 arguments, 3 provided
/usr/local/include/opencv2/core/mat.hpp:1233:20: note: static cv::MatExpr cv::Mat::zeros(int, const int*, int)
static MatExpr zeros(int ndims, const int* sz, int type);
^
/usr/local/include/opencv2/core/mat.hpp:1233:20: note: no known conversion for argument 1 from ‘cv::Size’ to ‘int’
sim_funcs.cpp:443:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < constraints.total(); i++)
^
sim_funcs.cpp:446:38: error: ‘const sPenalty’ has no member named ‘R’
conRewards.ATD(i, 0) = -penalty.R*pow(1 + constraints.ATD(i, 0), 2.0);
^
sim_funcs.cpp:448:29: error: no match for ‘operator+’ (operand types are ‘double’ and ‘cv::Scalar’)
double temp = flightTime + sum(conRewards);
^
sim_funcs.cpp:448:29: note: candidates are:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8/algorithm:61,
from /usr/local/include/opencv2/core/base.hpp:53,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator.h:333:5: note: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)
operator+(typename reverse_iterator<_Iterator>::difference_type __n,
^
/usr/include/c++/4.8/bits/stl_iterator.h:333:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:448:45: note: ‘cv::Scalar’ is not derived from ‘const std::reverse_iterator<_Iterator>’
double temp = flightTime + sum(conRewards);
^
In file included from /usr/include/c++/4.8/string:52:0,
from /usr/local/include/opencv2/core/cvstd.hpp:58,
from /usr/local/include/opencv2/core/base.hpp:56,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/basic_string.h:2365:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/4.8/bits/basic_string.h:2365:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:448:45: note: mismatched types ‘const std::basic_string<_CharT, _Traits, _Alloc>’ and ‘double’
double temp = flightTime + sum(conRewards);
^
In file included from /usr/include/c++/4.8/string:53:0,
from /usr/local/include/opencv2/core/cvstd.hpp:58,
from /usr/local/include/opencv2/core/base.hpp:56,
from /usr/local/include/opencv2/core.hpp:54,
from sim_structs.hpp:4,
from sim_funcs.cpp:3:
/usr/include/c++/4.8/bits/basic_string.tcc:692:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator+(const _CharT* __lhs,
^
/usr/include/c++/4.8/bits/basic_string.tcc:692:5: note: template argument deduction/substitution failed:
sim_funcs.cpp:448:45: note: mismatched types ‘const _CharT*’ and ‘double’
double temp = flightTime + sum(conRewards);
^
In file included from /usr/include/c++/4.8/string:53:0,
from /usr/local/include/opencv2/core/cvstd.hpp:58,
from /usr/local/include/opencv2/core/base.hpp:56,