-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
48 additions
and
48 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
42 changes: 21 additions & 21 deletions
42
phase2/extra-test/test_2_s01.spl → phase2/test-other-student/test_2_s01.spl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
int test_16() | ||
{ | ||
int c = 6; | ||
return c; | ||
} | ||
float aa() | ||
{ | ||
int a = 2; | ||
int f = 3; | ||
int h = 4; | ||
if (a < f && h > f) return f; | ||
else if ( a == f || h > a) return 5.0; | ||
else return a; | ||
} | ||
int test_2_s01() | ||
{ | ||
float aaa[5]; | ||
int b = 2; | ||
aaa[test_16()] = 2.0; | ||
aaa[aa()] = 2.0; | ||
return b; | ||
int test_16() | ||
{ | ||
int c = 6; | ||
return c; | ||
} | ||
float aa() | ||
{ | ||
int a = 2; | ||
int f = 3; | ||
int h = 4; | ||
if (a < f && h > f) return f; | ||
else if ( a == f || h > a) return 5.0; | ||
else return a; | ||
} | ||
int test_2_s01() | ||
{ | ||
float aaa[5]; | ||
int b = 2; | ||
aaa[test_16()] = 2.0; | ||
aaa[aa()] = 2.0; | ||
return b; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions
16
phase2/extra-test/test_2_s06.out → phase2/test-other-student/test_2_s06.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Error type 9 at Line 9: invalid argument type at 1, except float, got int | ||
Error type 9 at Line 9: invalid argument type at 2, except char, got int | ||
Error type 9 at Line 10: invalid argument type at 0, except int, got float | ||
Error type 9 at Line 10: invalid argument type at 2, except char, got float | ||
Error type 9 at Line 11: invalid argument type at 0, except int, got char | ||
Error type 9 at Line 11: invalid argument type at 1, except float, got char | ||
Error type 9 at Line 12: invalid argument number, except 3, got 6 | ||
Error type 9 at Line 13: invalid argument number, except 3, got 6 | ||
Error type 9 at Line 9: invalid argument type at 1, except float, got int | ||
Error type 9 at Line 9: invalid argument type at 2, except char, got int | ||
Error type 9 at Line 10: invalid argument type at 0, except int, got float | ||
Error type 9 at Line 10: invalid argument type at 2, except char, got float | ||
Error type 9 at Line 11: invalid argument type at 0, except int, got char | ||
Error type 9 at Line 11: invalid argument type at 1, except float, got char | ||
Error type 9 at Line 12: invalid argument number, except 3, got 6 | ||
Error type 9 at Line 13: invalid argument number, except 3, got 6 | ||
Error type 9 at Line 14: invalid argument number, except 3, got 1 |
34 changes: 17 additions & 17 deletions
34
phase2/extra-test/test_2_s06.spl → phase2/test-other-student/test_2_s06.spl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
int test(int a,float b,char c){ | ||
return 0; | ||
} | ||
int test_2_s06(){ | ||
int d=10; | ||
float e=11.0; | ||
char f='k'; | ||
int g=test(d,e,f); | ||
int g1=test(d,d,d); | ||
int g2=test(e,e,e); | ||
int g3=test(f,f,f); | ||
int g4=test(d,d,d,d,d,d); | ||
int g5=test(d,e,f,d,e,f); | ||
int g6=test(f); | ||
return 0; | ||
} | ||
int test(int a,float b,char c){ | ||
return 0; | ||
} | ||
int test_2_s06(){ | ||
int d=10; | ||
float e=11.0; | ||
char f='k'; | ||
int g=test(d,e,f); | ||
int g1=test(d,d,d); | ||
int g2=test(e,e,e); | ||
int g3=test(f,f,f); | ||
int g4=test(d,d,d,d,d,d); | ||
int g5=test(d,e,f,d,e,f); | ||
int g6=test(f); | ||
|
||
return 0; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
phase2/extra-test/test_2_s08.spl → phase2/test-other-student/test_2_s08.spl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
int test_2_s08(int a, int a, int a, int b, float b, char b){ | ||
return 0; | ||
int test_2_s08(int a, int a, int a, int b, float b, char b){ | ||
return 0; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.