Skip to content

Commit

Permalink
Initialize variables
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchuo committed May 8, 2020
1 parent 01b1c04 commit 6de3461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AdvancedLevel_C++/1108. Finding Average (20).cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using namespace std;
int main() {
int n, cnt = 0;
char a[50], b[50];
double temp, sum = 0.0;
double temp = 0.0, sum = 0.0;
cin >> n;
for(int i = 0; i < n; i++) {
scanf("%s", a);
Expand Down
2 changes: 1 addition & 1 deletion BasicLevel_C++/1054. 求平均值 (20).cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using namespace std;
int main() {
int n, cnt = 0;
char a[50], b[50];
double temp, sum = 0.0;
double temp = 0.0, sum = 0.0;
cin >> n;
for(int i = 0; i < n; i++) {
scanf("%s", a);
Expand Down

0 comments on commit 6de3461

Please sign in to comment.