Looking for Course 58 test answers and solutions? Browse our comprehensive collection of verified answers for Course 58 at courses.apriorit.com.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
#include <iostream>#include <stdexcept> void Foo() noexcept{ throw std::runtime_error("oops");} int main(){ try { Foo(); } catch (...) { std::cout << "caught"; }}#include <iostream> int main(){ int x = 2147483647; // INT_MAX std::cout << (x + 1);}const int* p1; // Aint* const p2; // BРимські цифри представлені наступними символами:
| I | 1 |
| V | 5 |
| X | 10 |
| L | 50 |
| C | 100 |
| D | 500 |
| M | 1000 |
Зазвичай менше значення іде після більшого: VIII = 8, XII = 12. Але є 6 виключень де менше значення стоїть перед більшим - тоді воно віднімається:
IV = 4, IX = 9XL = 40, XC = 90CD = 400, CM = 900Написати функцію, яка конвертує рядок із римським числом у десяткове ціле.
Гарантується, що вхідний рядок є валідним римським числом у діапазоні [1, 3999].
const std::string& GetGreeting(){ std::string s = "Hello"; return s;} int main(){ const std::string& ref = GetGreeting(); std::cout << ref;}Посилання: https://assessment.corporate.ef.com/public/test/d19cf15c-fc35-4d8c-8b20-75b9514e6b5d