From 9adfa15935f0a523373dc6dfc46ecad93d361bbf Mon Sep 17 00:00:00 2001 From: SavinSA Date: Mon, 29 Apr 2024 13:26:41 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B2=D1=8B=D1=85=D0=BE=D0=B4=20=D0=B8=D0=B7=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC=D0=BC=D1=8B=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=BD=D0=B5=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D0=BE=D0=BC=20=D0=B2=D0=B2=D0=BE=D0=B4=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cpp b/main.cpp index fe6fb0d..f233c47 100644 --- a/main.cpp +++ b/main.cpp @@ -39,11 +39,13 @@ input_data() { for (i = 0; i < in.stroke.length(); i++) { if (isspace(in.stroke[i])) { cerr << "invalid input"; + exit(0); } } if (in.stroke[0] == check2[0]) { if (in.stroke.length() != 7) { cerr << "invalid input"; + exit(0); } } return in;