回答編集履歴
1
foundとunfoundが逆になっていたのを修正
test
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
if(std::find(v.begin(), v.end(), 1) != v.end()){
|
6
6
|
|
7
|
-
std::cout << "
|
7
|
+
std::cout << "found" << std::endl;
|
8
8
|
|
9
9
|
}
|
10
10
|
|
11
11
|
else{
|
12
12
|
|
13
|
-
std::cout << "found
|
13
|
+
std::cout << "unfound" << std::endl;
|
14
14
|
|
15
15
|
}
|
16
16
|
|