Skip to content

Commit af36a69

Browse files
committed
[chef-fp] Variables must be initialized.
1 parent 4c6b761 commit af36a69

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • demos/ErrorEstimation/PrintModel

demos/ErrorEstimation/PrintModel/test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ int main() {
2727
df.dump();
2828

2929
// Calculate the error
30-
float dx, dy;
31-
double error;
30+
float dx = 0, dy = 0;
31+
double error = 0;
3232
df.execute(2, 3, &dx, &dy, error);
33+
printf("Total error=%f\n", error);
3334
}

0 commit comments

Comments
 (0)