Ad
  • Custom User Avatar
  • Custom User Avatar

    Language: Swift
    Starting with the base code that uses Long type that does not exist in swift, after changing all variables to Int the base test works but when i try the big attempt it gives out this error:

    main.swift:44:24: error: type of expression is ambiguous without more context

    let actual = numbersWithDigitInside(x,d);

    i think it's a test issue but if there is already a fix i'd like some help

  • Custom User Avatar

    (writing in swift) I think i have an issue but it's probably just me being stupid, when i try the code in Xcode it works wonders, when i run it on CW i get every number multiplied by 10 and i literally have no instruction that does that;

    not here for the solution obviously, just to know if it's a me dumb dumb problem or a known one

    this is the result of 1 test in CW and only 1 command print(), the same test on Xcode gives only the first line:

    test: [(69, 130), (87, 1310), (3, 4)] output: [(18078, 34060), (2262, 34060), (25545, 34060)]

    test: [(690, 1300), (87, 1310), (30, 40)] output: [(180780, 340600), (22620, 340600), (255450, 340600)]