minimal fixes
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/04/17 20:26:58 by aortigos #+# #+# */
|
||||
/* Updated: 2026/04/17 20:59:40 by aortigos ### ########.fr */
|
||||
/* Updated: 2026/04/21 21:54:47 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -21,7 +21,16 @@ int main()
|
||||
arr.push_back(3);
|
||||
arr.push_back(2);
|
||||
|
||||
std::cout << *easyfind(arr, 4) << std::endl;
|
||||
try {
|
||||
std::cout << *easyfind(arr, 4) << std::endl;
|
||||
} catch (std::exception &e) {
|
||||
std::cout << "Not found" << std::endl;
|
||||
}
|
||||
try {
|
||||
std::cout << *easyfind(arr, 99) << std::endl;
|
||||
} catch (std::exception &e) {
|
||||
std::cout << "Not found" << std::endl;
|
||||
}
|
||||
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user