aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-02-12 19:31:53 +0000
committerRossTheRoss <msattr@gmail.com>2019-02-12 19:31:53 +0000
commitc8c115dbe6b5c67dcbf6eb018a07af5dcb8f7034 (patch)
tree1176a2131ce8e15401d94b48ad6925bb3f10cfb0 /misc
parentFix (diff)
downloadhomework-c8c115dbe6b5c67dcbf6eb018a07af5dcb8f7034.tar
homework-c8c115dbe6b5c67dcbf6eb018a07af5dcb8f7034.tar.gz
homework-c8c115dbe6b5c67dcbf6eb018a07af5dcb8f7034.tar.bz2
homework-c8c115dbe6b5c67dcbf6eb018a07af5dcb8f7034.tar.lz
homework-c8c115dbe6b5c67dcbf6eb018a07af5dcb8f7034.tar.xz
homework-c8c115dbe6b5c67dcbf6eb018a07af5dcb8f7034.tar.zst
homework-c8c115dbe6b5c67dcbf6eb018a07af5dcb8f7034.zip
Error code change?
Diffstat (limited to '')
-rw-r--r--misc/test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/test.cpp b/misc/test.cpp
index b14f99a..564b6f2 100644
--- a/misc/test.cpp
+++ b/misc/test.cpp
@@ -14,11 +14,11 @@ int main () {
cout << "Not prime!" << endl;
a=1;
break;
- return 3;
+ return i;
}
}
if (a!=1)
cout << "Prime!" << endl;
- return 2;
+ return 0;
}