Fix errors in mC example inputs (thanks Markus)

This commit is contained in:
Markus Kopp
2019-03-31 17:13:11 +02:00
committed by Alex Hirsch
parent 14da3497ed
commit 88e52e7828
7 changed files with 30 additions and 17 deletions

View File

@@ -4,8 +4,10 @@ int main(){
print_nl();
int n;
n = read_int();
bool a = 1 <= n;
bool b = 2 == n;
bool a;
a = 1 <= n;
bool b;
b = 2 == n;
b = 3 >= n;
n = n * 2;
n = n / 2;
@@ -15,9 +17,12 @@ int main(){
a || b;
a != !b;
int[3] test;
string hi = "Hello";
float f = -1.0;
bool c = true;
string hi;
hi = "Hello";
float f;
f = -1.0;
bool c;
c = true;
if (c)
{
while(c){