From 198d437e1ad52677dae62c9bc575114021ea7319 Mon Sep 17 00:00:00 2001 From: juan Date: Sun, 5 Dec 2021 09:40:57 +0800 Subject: [PATCH] update gcc typo --- semester1/pset11/1-1-findmin.c | 2 +- semester1/pset11/2-1-transpose.c | 2 +- semester1/pset11/2-2storage.c | 2 +- semester1/pset11/2-3-MatrixAdd.c | 2 +- semester1/pset11/2-4-SaddlePoint.c | 2 +- semester1/pset11/2-5-MatrixSort.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/semester1/pset11/1-1-findmin.c b/semester1/pset11/1-1-findmin.c index 71f33ad..44bba51 100644 --- a/semester1/pset11/1-1-findmin.c +++ b/semester1/pset11/1-1-findmin.c @@ -26,7 +26,7 @@ int main() { } /* 请在这里填写答案 */ -#pragma gcc optimize("ofast,inline") +#pragma GCC optimize("Ofast,inline") void findMin(int M[][MAX], int x[], int n, int m) { int min; for (int i = 0; i < m; i++) { diff --git a/semester1/pset11/2-1-transpose.c b/semester1/pset11/2-1-transpose.c index 034bdaf..c3761f2 100644 --- a/semester1/pset11/2-1-transpose.c +++ b/semester1/pset11/2-1-transpose.c @@ -1,5 +1,5 @@ #include -#pragma gcc optimize("O2") +#pragma GCC optimize("O2") #define MAX 100 void transpose(int matrix[][MAX], int result[][MAX], int n, int m); diff --git a/semester1/pset11/2-2storage.c b/semester1/pset11/2-2storage.c index ae03e2a..086f1fe 100644 --- a/semester1/pset11/2-2storage.c +++ b/semester1/pset11/2-2storage.c @@ -1,5 +1,5 @@ #include -#pragma gcc optimize("Ofast,inline") +#pragma GCC optimize("Ofast,inline") void process(float input[][3], float output[][5], int n); diff --git a/semester1/pset11/2-3-MatrixAdd.c b/semester1/pset11/2-3-MatrixAdd.c index 95e86e0..d6ffbd5 100644 --- a/semester1/pset11/2-3-MatrixAdd.c +++ b/semester1/pset11/2-3-MatrixAdd.c @@ -1,5 +1,5 @@ #include -#pragma gcc optimize("O2") +#pragma GCC optimize("O2") #define MAX 10 int matrixAdd(int matrix[][MAX], int m, int n, int x, int y); diff --git a/semester1/pset11/2-4-SaddlePoint.c b/semester1/pset11/2-4-SaddlePoint.c index 74dbc16..9fe00a1 100644 --- a/semester1/pset11/2-4-SaddlePoint.c +++ b/semester1/pset11/2-4-SaddlePoint.c @@ -1,5 +1,5 @@ #include -#pragma gcc optimize("Ofast, inline") +#pragma GCC optimize("Ofast, inline") int main(void) { int n, m; diff --git a/semester1/pset11/2-5-MatrixSort.c b/semester1/pset11/2-5-MatrixSort.c index b493e2d..e4a14fe 100644 --- a/semester1/pset11/2-5-MatrixSort.c +++ b/semester1/pset11/2-5-MatrixSort.c @@ -1,5 +1,5 @@ #include -#pragma gcc optimize("Ofast, inline") +#pragma GCC optimize("Ofast, inline") int getSum(int *arr, int len); // Use bubble sort