Skip to content

Commit 07d91f3

Browse files
committed
Update: 2020/06/01
1 parent 7de0729 commit 07d91f3

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

CCF/CSP/2019/19093.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ struct RGB {
77
int r;
88
int g;
99
int b;
10-
RGB(){};
1110
RGB(int _r, int _g, int _b) { r = _r, g = _g, b = _b; }
1211
} xs[1080][1920];
1312

LanQiao/03_Advance/015_最大乘积.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
using namespace std;
44

55
int main() {
6-
int c, n, m, ans, a[20], i, j;
6+
int c, n, m, ans, a[20];
77
scanf("%d", &c);
88

99
while (c--) {
1010
scanf("%d%d", &n, &m);
11-
for (i = 0; i < n; ++i)
11+
for (int i = 0; i < n; ++i)
1212
scanf("%d", &a[i]);
1313
sort(a, a + n);
1414
ans = 1;

NowCoder/CodingInterviews/PrintZigZag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Solution {
2121
q.push(t->right);
2222
q.pop();
2323
}
24-
if (level & 1 == 1)
24+
if ((level & 1) == 1)
2525
reverse(l.begin(), l.end());
2626
res.push_back(l);
2727
++level;

PTA/PAT/BasicLevel/1038.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using namespace std;
55

66
int main() {
7-
int N, K, i, t;
7+
int N, K, t;
88
int a[101] = {0};
99
vector<int> v;
1010
vector<int>::iterator it;

ZJUDS/MOOC_Source/2.1 LinkList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ bool Insert(List L, ElementType X, Position P) {
5151
*/
5252
bool Delete(List L, Position P) {
5353
/* 这里默认L有头结点 */
54-
Position tmp, pre;
54+
Position pre;
5555

5656
/* 查找P的前一个结点 */
5757
for (pre = L; pre && pre->Next != P; pre = pre->Next)

0 commit comments

Comments
 (0)