summaryrefslogtreecommitdiff
path: root/5p13.cpp
diff options
context:
space:
mode:
Diffstat (limited to '5p13.cpp')
-rw-r--r--5p13.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/5p13.cpp b/5p13.cpp
index 58d5fbf..503bc03 100644
--- a/5p13.cpp
+++ b/5p13.cpp
@@ -1,12 +1,16 @@
-#include <iostream>
/*
*
- * 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;
}