Accumulation of bug
文章平均质量分 50
Accumulate some of their own encountered bugs, improve themselves
NP_hard
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
git的一些用法
文章目录 添加文件,可以添加多个文件,用空格分隔 git add git checkout np_hard 切换到np_hard分支 git checkout -b np_hard 在创造np_hard分支的同时切换到np_hard分支 git checkout 同步远程库 git fetch 查看git状态 git status 在add完一系列文件之后,使用命令git commit -m "this is the first commit"来提交文件到远程库 git comm原创 2021-11-12 22:23:37 · 390 阅读 · 0 评论 -
C++类内初始化vector 报错:expected parameter declarator
有一天我在打力扣的时候,我在solution类内初始化一个vector的时候,编译器发生了报错 Line 3: Char 19: error: expected parameter declarator vector<int> t(46,0); ^ 我的代码长这样 class Solution { public: vector<int> t(46,0);//这样子 int climbStairs(int n) {原创 2022-01-30 14:54:12 · 2775 阅读 · 0 评论 -
vscode 添加万能头文件#include<bits/stdc++.h>
文章目录前言配置 前言 有一天我在愉快的刷着leetcode 突然觉得写头文件好TM麻烦,于是就想着配置一下万能头文件 配置的过程我觉得还是记录一下吧,很多初学者可能会犯迷糊 配置 首先,我们要清楚,我们在vscode上写C/C++程序的时候,我们的一些设置文件是在c_cpp_properties.json这个文件上配置的 这个文件的位置在: 想要修改c_cpp_properties.json这个文件,我们可以在vscode上使用快捷键Ctrl+shift+p 然后点击下图的箭头所指的选项 呐呐呐呐原创 2022-01-22 14:02:48 · 6908 阅读 · 6 评论 -
vscode 采用C++17版本进行编译
有一天我在打题的时候,使用了这种方式来初始化一个vector vector<int> nums = {-4,-1,0,3,10}; 编译器马上很快就执行了编译命令 if ($?) { g++ day2_1.cpp -o day2_1 } ; if ($?) { .\day2_1 } 并且也很快的报了错(寄了) day2_1.cpp: In function 'int main()': day2_1.cpp:17:37: error: in C++98 'nums' must be initi原创 2022-01-18 12:02:48 · 8873 阅读 · 2 评论
分享