質問編集履歴
2
;の抜けを修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
```
|
28
28
|
#include <bits/stdc++.h>
|
29
29
|
|
30
|
-
int a[100000]
|
30
|
+
int a[100000];
|
31
31
|
|
32
32
|
int main(){
|
33
33
|
for(int i=0;i<100000;++i){
|
1
コンパイルが通らない問題を修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
C++の配列を
|
2
2
|
```C++
|
3
3
|
int a[10000];
|
4
|
+
|
5
|
+
int main(){
|
6
|
+
return 0;
|
7
|
+
}
|
4
8
|
```
|
5
9
|
と宣言したときの初期値は0ですか?それとも別の値ですか?
|
6
10
|
|
@@ -23,6 +27,8 @@
|
|
23
27
|
```
|
24
28
|
#include <bits/stdc++.h>
|
25
29
|
|
30
|
+
int a[100000]
|
31
|
+
|
26
32
|
int main(){
|
27
33
|
for(int i=0;i<100000;++i){
|
28
34
|
if(a[i]!=0)std::cout<<a[i]<<std::endl;
|