Commit 39db14f2 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

fixed warnings

parent 9fbf6328
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ compile_problem_1b:
    - job: prebuild_problem_1b
      artifacts: true
  script:
    - ls -a
    - cp IntegerP.cpp hw0/tests/
    - cd hw0/tests
    - make problem1b
+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ int main() {
  bool results[] = { test_0(), test_1(), test_2(), test_3(), test_4(), test_5(), test_6(), test_7(), test_8() };

  bool allPassed = true;
  for (int ii=0; ii<sizeof(results)/sizeof(results[0]);ii++) {
  for (int ii=0; ii<std::size(results);ii++) {
    cout << "Test of problem " << to_string(ii) << ": " << (results[ii] ? "passed" : "failed") << endl;
    allPassed &= results[ii];
  }