minimal fixes

This commit is contained in:
Angel Ortigosa Perez
2026-04-21 21:56:05 +02:00
parent 39b7ee24e2
commit c83c743f58
2 changed files with 4 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ class Span
{ {
while (it != itt) while (it != itt)
{ {
this->data.push_back(*it); addNumber(*it);
// std::cout << "addNumbers: adding " << *it << std::endl; // std::cout << "addNumbers: adding " << *it << std::endl;
it++; it++;
} }

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */ /* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2026/04/21 10:56:22 by aortigos #+# #+# */ /* Created: 2026/04/21 10:56:22 by aortigos #+# #+# */
/* Updated: 2026/04/21 11:26:22 by aortigos ### ########.fr */ /* Updated: 2026/04/21 21:54:11 by aortigos ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@@ -67,7 +67,7 @@ int main()
// Main 3 // Main 3
/*
Span sp = Span(5); Span sp = Span(5);
sp.addNumber(6); sp.addNumber(6);
sp.addNumber(3); sp.addNumber(3);
@@ -76,7 +76,7 @@ int main()
sp.addNumber(11); sp.addNumber(11);
std::cout << sp.shortestSpan() << std::endl; std::cout << sp.shortestSpan() << std::endl;
std::cout << sp.longestSpan() << std::endl; std::cout << sp.longestSpan() << std::endl;
*/
return (0); return (0);
} }