error: C++ preprocessor "/lib/cpp" fails sanity check 问题的根源是缺少必要的C++库。如果是CentOS系统,运行,如下命令解决: yum install -y glibc-headers gcc-c++ Ubuntu系统中,运行命令: apt- ...
分类:
其他好文 时间:
2021-03-18 14:06:28
阅读次数:
0
进入IDEA 的工具下会发现有四个选项 其中第一个就是创建一个新的Java工程 第二个是导入一个工程 第三个是打开一个已有工程比如打开Eclipse项目 check out from version control 通过服务器的项目地址导入项目,可以是gethub上的项目 同时需要说明IDEA的项目 ...
分类:
其他好文 时间:
2021-03-17 14:09:51
阅读次数:
0
前言 C++常用的STL及方法 (上) : C++常用的 STL 及方法 (中上) : C++常用的 STL 及方法 (中) : C++常用的 STL 及方法 (中下) : 目录 STL -- 泛型算法 <algorithm> max() -- 求最大值 min() -- 求最小值 abs() -- ...
分类:
编程语言 时间:
2021-03-17 14:01:43
阅读次数:
0
#include <cmath> #include <queue> #include <cstdio> #include <vector> #include <cstring> #include <iostream> #include <algorithm> #define int long lon ...
分类:
其他好文 时间:
2021-03-16 13:45:35
阅读次数:
0
#include <cmath> #include <queue> #include <cstdio> #include <vector> #include <cstring> #include <iostream> #include <algorithm> #define ll long long ...
分类:
其他好文 时间:
2021-03-16 13:45:15
阅读次数:
0
Challenge 0 给一个长为 \(n\) 的数列,有 \(M\) 次操作 \((1\le n, m \le 10^5)\),每次操作是以下两种之一: 修改数列中的一个数 求数列中某位置的值 解答:数组模拟即可。 #include <iostream> #include <cstdio> #in ...
分类:
其他好文 时间:
2021-03-16 11:41:02
阅读次数:
0
题意 要让链表里的所有负数的结点排在非负数的前面,以及让所有的[0, K]的数字放在(k, ∞)的前面,而且要保持相对顺序不变。保证链表不为空 思路 依次遍历链表的每个结点进行标记,第一趟取出负数,第二趟取出[0, K]内的数字,第三趟取出剩下没有取的数字,标记的方式是令data = 100010, ...
分类:
其他好文 时间:
2021-03-15 10:43:58
阅读次数:
0
Error: Error launching source instance: Unsupported: The requested configuration is currently not supported. Please check the documentation for suppor ...
分类:
其他好文 时间:
2021-03-15 10:42:10
阅读次数:
0
Check If a String Contains All Binary Codes of Size K (M) 题目 Given a binary string s and an integer k. Return True if every binary code of length k is ...
分类:
其他好文 时间:
2021-03-15 10:41:54
阅读次数:
0
马克-to-win:checked和unchecked异常区别:结论就是:1)RuntimeException和他的子类都是unchecked异 常。其他的都是checked异常。马克-to-win:2)在编译阶段,编译器会检查每一个方法,看是否方法里面抛出了checked异常。假设抛出了 chec ...
分类:
编程语言 时间:
2021-03-12 14:17:38
阅读次数:
0