- 博客(7)
- 收藏
- 关注
原创 C++ Libtorch 头文件问题
!!!Libtorch 头文件顺序#include <torch/script.h>#include <torch/torch.h>#include <iostream>放在所有头文件最前面,避免出错libtorch/include/ATen/DeviceGuard.h:25:8: error: reference to 'optional' is ambiguouslibtorch/include/ATen/DeviceGuard.h:26:
2022-05-08 21:49:02 1622 1
原创 Error:‘path‘ is unavailable: introduced in macOS 10.15
Mac OS 10.15 + QT 5.14 (filesystem)解决方法:(.pro)CONFIG += c++17QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.15
2022-03-14 23:46:32 1727
原创 A1111 Online Map
A1111 Online Map ????????????????contenthttps://pintia.cn/problem-sets/A1111condition 1 : output the fastest one among the shortest pathscondition 2 : output the one that passes through the fewest intersections????【Dijkstra + DFS】???? skill❗️issue
2021-08-26 14:27:59 161
原创 A1072 Gas Station
A1072 Gas Station ????????????????contenthttps://pintia.cn/problem-sets/A1072condition 1 : the minimum distance between the station and any of the residential housing is as far away as possiblecondition 2 : output the one with the smallest average dist
2021-08-17 17:37:27 168
原创 A1102 Invert a Binary Tree
A1102 Invert a Binary Tree ????????????????contenthttps://pintia.cn/problem-sets/A1102the inverted tree------>symmetrically????【Tree】???? skillnormal tree in-order (pseudo-code):leftTree----> root ----> rightTreefor inverted tree in-order
2021-08-17 17:13:29 101
原创 A1071 Speech Patterns
A1071 Speech Patterns ????????????????contenthttps://pintia.cn/problem-sets/A1020????【Tree】❗️issue⭐️solution!!!key!!!—>inOrder sequence = left + in + right -----> get the number of left-child-num/right-child-numpostOrder sequence = left +
2021-08-17 09:49:55 68
原创 A1035 Password
A1071 Password ????????contenthttps://pintia.cn/problem-sets/A1071????【String】❗️issue1.Attention to the output format : n >1 “is”->“are” , n+sThere is 1 account and no account is modifiedThere are 2 accounts and no account is modified2.unint
2021-08-17 09:27:57 108
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人