回答編集履歴
1
微修正
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
try {
|
22
22
|
|
23
|
-
int n = st
|
23
|
+
int n = stoi(str); // 文字列をintに変換
|
24
24
|
|
25
25
|
if(n < 0){
|
26
26
|
|
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
} else {
|
36
36
|
|
37
|
-
cout << 0 <<
|
37
|
+
cout << 0 << endl;
|
38
38
|
|
39
39
|
}
|
40
40
|
|