From 850822ffbfd441d05161452be28b54f882b1b378 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 1 Nov 2017 03:41:16 -0700 Subject: 4102 --- html/022arithmetic.cc.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'html/022arithmetic.cc.html') diff --git a/html/022arithmetic.cc.html b/html/022arithmetic.cc.html index 8efefbe6..e8f8eb5c 100644 --- a/html/022arithmetic.cc.html +++ b/html/022arithmetic.cc.html @@ -128,7 +128,7 @@ if ('onhashchange' in window) { 64 :(scenario add_checks_return_type) 65 % Hide_errors = true; 66 def main [ - 67 1:address:num <- add 2, 2 + 67 1:address:num <- add 2, 2 68 ] 69 +error: main: 'add' should yield a number, but got '1:address:num' 70 @@ -337,7 +337,7 @@ if ('onhashchange' in window) { 273 long long int a = static_cast<long long int>(ingredients.at(0).at(0)); 274 long long int b = static_cast<long long int>(ingredients.at(1).at(0)); 275 if (b == 0) { -276 ¦ raise << maybe(current_recipe_name()) << "divide by zero in '" << to_original_string(current_instruction()) << "'\n" << end(); +276 ¦ raise << maybe(current_recipe_name()) << "divide by zero in '" << to_original_string(current_instruction()) << "'\n" << end(); 277 ¦ products.resize(2); 278 ¦ products.at(0).push_back(0); 279 ¦ products.at(1).push_back(0); @@ -419,7 +419,7 @@ if ('onhashchange' in window) { 355 int b = static_cast<int>(ingredients.at(1).at(0)); 356 products.resize(1); 357 if (b < 0) { -358 ¦ raise << maybe(current_recipe_name()) << "second ingredient can't be negative in '" << to_original_string(current_instruction()) << "'\n" << end(); +358 ¦ raise << maybe(current_recipe_name()) << "second ingredient can't be negative in '" << to_original_string(current_instruction()) << "'\n" << end(); 359 ¦ products.at(0).push_back(0); 360 ¦ break; 361 } @@ -490,7 +490,7 @@ if ('onhashchange' in window) { 426 int b = static_cast<int>(ingredients.at(1).at(0)); 427 products.resize(1); 428 if (b < 0) { -429 ¦ raise << maybe(current_recipe_name()) << "second ingredient can't be negative in '" << to_original_string(current_instruction()) << "'\n" << end(); +429 ¦ raise << maybe(current_recipe_name()) << "second ingredient can't be negative in '" << to_original_string(current_instruction()) << "'\n" << end(); 430 ¦ products.at(0).push_back(0); 431 ¦ break; 432 } -- cgit 1.4.1-2-gfad0