回答編集履歴

1

foundとunfoundが逆になっていたのを修正

2021/08/15 09:27

投稿

majiponi
majiponi

スコア1722

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 << "not found" << std::endl;
7
+ std::cout << "found" << std::endl;
8
8
 
9
9
  }
10
10
 
11
11
  else{
12
12
 
13
- std::cout << "found: " << std::endl;
13
+ std::cout << "unfound" << std::endl;
14
14
 
15
15
  }
16
16