- 博客(14)
- 收藏
- 关注
原创 [Error] failure to convert gbk to UTF-8
Dev C++运行程序时候报错。选择编辑》文件编码》UTF-8。修改文件编码未UTF-8。
2023-05-27 14:14:28 2413 3
原创 windows 下实现backtrace以及undefined reference to问题解决
在linux下可以通过execinfo.h下的backtrace_symbols和backtrace来实现backtrack。但是windows中没有execinfo.h。但是之后运行发现报错undefined reference to,网上查找发现需要在Dev中进行编译选项设置。,使用CaptureStackBackTrace和SymFromAddr实现。选择 “工具”》“编译选项”进行如下设置。添加“-ldbghelp”。
2023-05-27 12:48:41 884
转载 Springboot+Vue 报错no ‘access-control-allow-origin‘ header is present on the requested resource.
Springboot+Vue 报错no 'access-control-allow-origin' header is present on the requested resource.
2022-11-21 11:15:15 377
原创 场景图生成(scene graph generation),github/yrcong/RelTR 代码运行
这周为了跑通yrcong/RelTR: RelTR: Relation Transformer for Scene Graph Generation (github.com)配置环境花了好长时间。从github下载项目,按照网站要求:git clone https://github.com/yrcong/RelTR.gitcd RelTR之后下载anaconda配置新的环境,记住一定要按照网站要求设置python=3.6,我一开始运行python=3.7一直无法成功。下载需要的包。
2022-04-26 10:37:20 2214 6
原创 This application failed to start because no Qt platform plugin could be initialized.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.相关博客:https://blog.csdn.net/zhangziju/article/details/80243858...
2019-09-26 12:45:58 40089 17
原创 F. Expected diameter of a tree
https://codeforces.com/problemset/problem/805/F#include<bits/stdc++.h>using namespace std;typedef long long ll;int fa[100005],judge[100005];int mx[100005],dis[100005];int num[100005];bo...
2019-04-03 22:00:17 172
原创 D. Tree Requests
https://codeforces.com/gym/241159/problem/D#include<bits/stdc++.h>using namespace std;typedef long long ll;string ch;vector<int> vec[500100];vector<int> ans[500100];vector&l...
2019-03-28 21:35:21 236
原创 codeforces F2. Same Sum Blocks (Hard)
https://codeforces.com/problemset/problem/1141/F2#include <bits/stdc++.h>using namespace std;typedef long long ll; int arr[1510];int sum[1510];vector<int> vec[2250010];map<int,...
2019-03-21 16:36:18 199
原创 codeforces F. Elongated Matrix
https://codeforces.com/contest/1102/problem/F#include<bits/stdc++.h># define ll long longusing namespace std;int arr[18][10010],n,m;int mn[20][20],mm[20][20];bool dp[(1<<16)+10][18...
2019-01-16 09:46:48 154
原创 1096F. Inversion Expectation
题意:给出一个数n。接下来n个数,从1到n。其中有些数被-1取代。现在让你求所有情况的逆序对的期望值。#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll mod=998244353;ll arr[200010],ans;ll a[200010],b[200010],top,n...
2019-01-07 09:25:47 258
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人