И?
#include <iostream>
#define MIN (-2147483647-1)
int main()
{
int32_t n = 0, m = MIN;
do
std::cin >> n;
if (n < 0 && n > m) m = n;
} while (n != 0);
if (m == (MIN))
std::cout << "0\n";
else std::cout << m << "\n";
return 0;
}
И?
#include <iostream>
#define MIN (-2147483647-1)
int main()
{
int32_t n = 0, m = MIN;
do
{
std::cin >> n;
if (n < 0 && n > m) m = n;
} while (n != 0);
if (m == (MIN))
std::cout << "0\n";
else std::cout << m << "\n";
return 0;
}