From e039d589d29ab799c20fe845d5a005dc257f9a44 Mon Sep 17 00:00:00 2001 From: Oskar Date: Thu, 29 Aug 2024 16:24:16 +0200 Subject: more --- 5p13.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '5p13.cpp') diff --git a/5p13.cpp b/5p13.cpp index 58d5fbf..503bc03 100644 --- a/5p13.cpp +++ b/5p13.cpp @@ -1,12 +1,16 @@ -#include /* * - * Description + * 5.13 * * */ int main () { + + // (a) there are no breaks, so we add breaks after each case + // (b) ix is initialized in case 1 but we try to use it in default, we add brackets and initialize it in default as well, or maybe make the variable global + // (c) we can only have one value per case, we would need to add a case for each value so it can fall through + // (d) case labels must be integral constant expressions return 0; } -- cgit v1.2.3