Detalii evaluare #50023986

Rezumat problemă

Să se scrie un program care citește numărul natural n și determină suma S=11+22+ ... + nn .

Detalii

Problema Expresie5 Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #50023986 Utilizator Popov Maxim (MaxPop)
Fișier expresie5.cpp Dimensiune 207 B
Data încărcării 24 Martie 2024, 14:17 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

expresie5.cpp:1:1: error: 'include' does not name a type
 include <iostream>

 ^
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:102:11: error: '::acos' has not been declared
   using ::acos;
           ^
/usr/include/c++/4.8/cmath:121:11: error: '::asin' has not been declared
   using ::asin;
           ^
/usr/include/c++/4.8/cmath:140:11: error: '::atan' has not been declared
   using ::atan;
           ^
/usr/include/c++/4.8/cmath:159:11: error: '::atan2' has not been declared
   using ::atan2;
           ^
/usr/include/c++/4.8/cmath:180:11: error: '::ceil' has not been declared
   using ::ceil;
           ^
/usr/include/c++/4.8/cmath:199:11: error: '::cos' has not been declared
   using ::cos;
           ^
/usr/include/c++/4.8/cmath:218:11: error: '::cosh' has not been declared
   using ::cosh;
           ^
/usr/include/c++/4.8/cmath:237:11: error: '::exp' has not been declared
   using ::exp;
           ^
/usr/include/c++/4.8/cmath:256:11: error: '::fabs' has not been declared
   using ::fabs;
           ^
/usr/include/c++/4.8/cmath:275:11: error: '::floor' has not been declared
   using ::floor;
           ^
/usr/include/c++/4.8/cmath:294:11: error: '::fmod' has not been declared
   using ::fmod;
           ^
/usr/include/c++/4.8/cmath:315:11: error: '::frexp' has not been declared
   using ::frexp;
           ^
/usr/include/c++/4.8/cmath:334:11: error: '::ldexp' has not been declared
   using ::ldexp;
           ^
/usr/include/c++/4.8/cmath:353:11: error: '::log' has not been declared
   using ::log;
           ^
/usr/include/c++/4.8/cmath:372:11: error: '::log10' has not been declared
   using ::log10;
           ^
/usr/include/c++/4.8/cmath:391:11: error: '::modf' has not been declared
   using ::modf;
           ^
/usr/include/c++/4.8/cmath:403:11: error: '::pow' has not been declared
   using ::pow;
           ^
/usr/include/c++/4.8/cmath:440:11: error: '::sin' has not been declared
   using ::sin;
           ^
/usr/include/c++/4.8/cmath:459:11: error: '::sinh' has not been declared
   using ::sinh;
           ^
/usr/include/c++/4.8/cmath:478:11: error: '::sqrt' has not been declared
   using ::sqrt;
           ^
/usr/include/c++/4.8/cmath:497:11: error: '::tan' has not been declared
   using ::tan;
           ^
/usr/include/c++/4.8/cmath:516:11: error: '::tanh' has not been declared
   using ::tanh;
           ^
/usr/include/c++/4.8/cmath:1037:11: error: '::double_t' has not been declared
   using ::double_t;
           ^
/usr/include/c++/4.8/cmath:1038:11: error: '::float_t' has not been declared
   using ::float_t;
           ^
/usr/include/c++/4.8/cmath:1041:11: error: '::acosh' has not been declared
   using ::acosh;
           ^
/usr/include/c++/4.8/cmath:1042:11: error: '::acoshf' has not been declared
   using ::acoshf;
           ^
/usr/include/c++/4.8/cmath:1043:11: error: '::acoshl' has not been declared
   using ::acoshl;
           ^
/usr/include/c++/4.8/cmath:1045:11: error: '::asinh' has not been declared
   using ::asinh;
           ^
/usr/include/c++/4.8/cmath:1046:11: error: '::asinhf' has not been declared
   using ::asinhf;
           ^
/usr/include/c++/4.8/cmath:1047:11: error: '::asinhl' has not been declared
   using ::asinhl;
           ^
/usr/include/c++/4.8/cmath:1049:11: error: '::atanh' has not been declared
   using ::atanh;
           ^
/usr/include/c++/4.8/cmath:1050:11: error: '::atanhf' has not been declared
   using ::atanhf;
           ^
/usr/include/c++/4.8/cmath:1051:11: error: '::atanhl' has not been declared
   using ::atanhl;
           ^
/usr/include/c++/4.8/cmath:1053:11: error: '::cbrt' has not been declared
   using ::cbrt;
           ^
/usr/include/c++/4.8/cmath:1054:11: error: '::cbrtf' has not been declared
   using ::cbrtf;
           ^
/usr/include/c++/4.8/cmath:1055:11: error: '::cbrtl' has not been declared
   using ::cbrtl;
           ^
/usr/include/c++/4.8/cmath:1057:11: error: '::copysign' has not been declared
   using ::copysign;
           ^
/usr/include/c++/4.8/cmath:1058:11: error: '::copysignf' has not been declared
   using ::copysignf;
           ^
/usr/include/c++/4.8/cmath:1059:11: error: '::copysignl' has not been declared
   using ::copysignl;
           ^
/usr/include/c++/4.8/cmath:1061:11: error: '::erf' has not been declared
   using ::erf;
           ^
/usr/include/c++/4.8/cmath:1062:11: error: '::erff' has not been declared
   using ::erff;
           ^
/usr/include/c++/4.8/cmath:1063:11: error: '::erfl' has not been declared
   using ::erfl;
           ^
/usr/include/c++/4.8/cmath:1065:11: error: '::erfc' has not been declared
   using ::erfc;
           ^
/usr/include/c++/4.8/cmath:1066:11: error: '::erfcf' has not been declared
   using ::erfcf;
           ^
/usr/include/c++/4.8/cmath:1067:11: error: '::erfcl' has not been declared
   using ::erfcl;
           ^
/usr/include/c++/4.8/cmath:1069:11: error: '::exp2' has not been declared
   using ::exp2;
           ^
/usr/include/c++/4.8/cmath:1070:11: error: '::exp2f' has not been declared
   using ::exp2f;
           ^
/usr/include/c++/4.8/cmath:1071:11: error: '::exp2l' has not been declared
   using ::exp2l;
           ^
/usr/include/c++/4.8/cmath:1073:11: error: '::expm1' has not been declared
   using ::expm1;
           ^
/usr/include/c++/4.8/cmath:1074:11: error: '::expm1f' has not been declared
   using ::expm1f;
           ^
/usr/include/c++/4.8/cmath:1075:11: error: '::expm1l' has not been declared
   using ::expm1l;
           ^
/usr/include/c++/4.8/cmath:1077:11: error: '::fdim' has not been declared
   using ::fdim;
           ^
/usr/include/c++/4.8/cmath:1078:11: error: '::fdimf' has not been declared
   using ::fdimf;
           ^
/usr/include/c++/4.8/cmath:1079:11: error: '::fdiml' has not been declared
   using ::fdiml;
           ^
/usr/include/c++/4.8/cmath:1081:11: error: '::fma' has not been declared
   using ::fma;
           ^
/usr/include/c++/4.8/cmath:1082:11: error: '::fmaf' has not been declared
   using ::fmaf;
           ^
/usr/include/c++/4.8/cmath:1083:11: error: '::fmal' has not been declared
   using ::fmal;
           ^
/usr/include/c++/4.8/cmath:1085:11: error: '::fmax' has not been declared
   using ::fmax;
           ^
/usr/include/c++/4.8/cmath:1086:11: error: '::fmaxf' has not been declared
   using ::fmaxf;
           ^
/usr/include/c++/4.8/cmath:1087:11: error: '::fmaxl' has not been declared
   using ::fmaxl;
           ^
/usr/include/c++/4.8/cmath:1089:11: error: '::fmin' has not been declared
   using ::fmin;
           ^
/usr/include/c++/4.8/cmath:1090:11: error: '::fminf' has not been declared
   using ::fminf;
           ^
/usr/include/c++/4.8/cmath:1091:11: error: '::fminl' has not been declared
   using ::fminl;
           ^
/usr/include/c++/4.8/cmath:1093:11: error: '::hypot' has not been declared
   using ::hypot;
           ^
/usr/include/c++/4.8/cmath:1094:11: error: '::hypotf' has not been declared
   using ::hypotf;
           ^
/usr/include/c++/4.8/cmath:1095:11: error: '::hypotl' has not been declared
   using ::hypotl;
           ^
/usr/include/c++/4.8/cmath:1097:11: error: '::ilogb' has not been declared
   using ::ilogb;
           ^
/usr/include/c++/4.8/cmath:1098:11: error: '::ilogbf' has not been declared
   using ::ilogbf;
           ^
/usr/include/c++/4.8/cmath:1099:11: error: '::ilogbl' has not been declared
   using ::ilogbl;
           ^
/usr/include/c++/4.8/cmath:1101:11: error: '::lgamma' has not been declared
   using ::lgamma;
           ^
/usr/include/c++/4.8/cmath:1102:11: error: '::lgammaf' has not been declared
   using ::lgammaf;
           ^
/usr/include/c++/4.8/cmath:1103:11: error: '::lgammal' has not been declared
   using ::lgammal;
           ^
/usr/include/c++/4.8/cmath:1105:11: error: '::llrint' has not been declared
   using ::llrint;
           ^
/usr/include/c++/4.8/cmath:1106:11: error: '::llrintf' has not been declared
   using ::llrintf;
           ^
/usr/include/c++/4.8/cmath:1107:11: error: '::llrintl' has not been declared
   using ::llrintl;
           ^
/usr/include/c++/4.8/cmath:1109:11: error: '::llround' has not been declared
   using ::llround;
           ^
/usr/include/c++/4.8/cmath:1110:11: error: '::llroundf' has not been declared
   using ::llroundf;
           ^
/usr/include/c++/4.8/cmath:1111:11: error: '::llroundl' has not been declared
   using ::llroundl;
           ^
/usr/include/c++/4.8/cmath:1113:11: error: '::log1p' has not been declared
   using ::log1p;
           ^
/usr/include/c++/4.8/cmath:1114:11: error: '::log1pf' has not been declared
   using ::log1pf;
           ^
/usr/include/c++/4.8/cmath:1115:11: error: '::log1pl' has not been declared
   using ::log1pl;
           ^
/usr/include/c++/4.8/cmath:1117:11: error: '::log2' has not been declared
   using ::log2;
           ^
/usr/include/c++/4.8/cmath:1118:11: error: '::log2f' has not been declared
   using ::log2f;
           ^
/usr/include/c++/4.8/cmath:1119:11: error: '::log2l' has not been declared
   using ::log2l;
           ^
/usr/include/c++/4.8/cmath:1121:11: error: '::logb' has not been declared
   using ::logb;
           ^
/usr/include/c++/4.8/cmath:1122:11: error: '::logbf' has not been declared
   using ::logbf;
           ^
/usr/include/c++/4.8/cmath:1123:11: error: '::logbl' has not been declared
   using ::logbl;
           ^
/usr/include/c++/4.8/cmath:1125:11: error: '::lrint' has not been declared
   using ::lrint;
           ^
/usr/include/c++/4.8/cmath:1126:11: error: '::lrintf' has not been declared
   using ::lrintf;
           ^
/usr/include/c++/4.8/cmath:1127:11: error: '::lrintl' has not been declared
   using ::lrintl;
           ^
/usr/include/c++/4.8/cmath:1129:11: error: '::lround' has not been declared
   using ::lround;
           ^
/usr/include/c++/4.8/cmath:1130:11: error: '::lroundf' has not been declared
   using ::lroundf;
           ^
/usr/include/c++/4.8/cmath:1131:11: error: '::lroundl' has not been declared
   using ::lroundl;
           ^
/usr/include/c++/4.8/cmath:1133:11: error: '::nan' has not been declared
   using ::nan;
           ^
/usr/include/c++/4.8/cmath:1134:11: error: '::nanf' has not been declared
   using ::nanf;
           ^
/usr/include/c++/4.8/cmath:1135:11: error: '::nanl' has not been declared
   using ::nanl;
           ^
/usr/include/c++/4.8/cmath:1137:11: error: '::nearbyint' has not been declared
   using ::nearbyint;
           ^
/usr/include/c++/4.8/cmath:1138:11: error: '::nearbyintf' has not been declared
   using ::nearbyintf;
           ^
/usr/include/c++/4.8/cmath:1139:11: error: '::nearbyintl' has not been declared
   using ::nearbyintl;
           ^
/usr/include/c++/4.8/cmath:1141:11: error: '::nextafter' has not been declared
   using ::nextafter;
           ^
/usr/include/c++/4.8/cmath:1142:11: error: '::nextafterf' has not been declared
   using ::nextafterf;
           ^
/usr/include/c++/4.8/cmath:1143:11: error: '::nextafterl' has not been declared
   using ::nextafterl;
           ^
/usr/include/c++/4.8/cmath:1145:11: error: '::nexttoward' has not been declared
   using ::nexttoward;
           ^
/usr/include/c++/4.8/cmath:1146:11: error: '::nexttowardf' has not been declared
   using ::nexttowardf;
           ^
/usr/include/c++/4.8/cmath:1147:11: error: '::nexttowardl' has not been declared
   using ::nexttowardl;
           ^
/usr/include/c++/4.8/cmath:1149:11: error: '::remainder' has not been declared
   using ::remainder;
           ^
/usr/include/c++/4.8/cmath:1150:11: error: '::remainderf' has not been declared
   using ::remainderf;
           ^
/usr/include/c++/4.8/cmath:1151:11: error: '::remainderl' has not been declared
   using ::remainderl;
           ^
/usr/include/c++/4.8/cmath:1153:11: error: '::remquo' has not been declared
   using ::remquo;
           ^
/usr/include/c++/4.8/cmath:1154:11: error: '::remquof' has not been declared
   using ::remquof;
           ^
/usr/include/c++/4.8/cmath:1155:11: error: '::remquol' has not been declared
   using ::remquol;
           ^
/usr/include/c++/4.8/cmath:1157:11: error: '::rint' has not been declared
   using ::rint;
           ^
/usr/include/c++/4.8/cmath:1158:11: error: '::rintf' has not been declared
   using ::rintf;
           ^
/usr/include/c++/4.8/cmath:1159:11: error: '::rintl' has not been declared
   using ::rintl;
           ^
/usr/include/c++/4.8/cmath:1161:11: error: '::round' has not been declared
   using ::round;
           ^
/usr/include/c++/4.8/cmath:1162:11: error: '::roundf' has not been declared
   using ::roundf;
           ^
/usr/include/c++/4.8/cmath:1163:11: error: '::roundl' has not been declared
   using ::roundl;
           ^
/usr/include/c++/4.8/cmath:1165:11: error: '::scalbln' has not been declared
   using ::scalbln;
           ^
/usr/include/c++/4.8/cmath:1166:11: error: '::scalblnf' has not been declared
   using ::scalblnf;
           ^
/usr/include/c++/4.8/cmath:1167:11: error: '::scalblnl' has not been declared
   using ::scalblnl;
           ^
/usr/include/c++/4.8/cmath:1169:11: error: '::scalbn' has not been declared
   using ::scalbn;
           ^
/usr/include/c++/4.8/cmath:1170:11: error: '::scalbnf' has not been declared
   using ::scalbnf;
           ^
/usr/include/c++/4.8/cmath:1171:11: error: '::scalbnl' has not been declared
   using ::scalbnl;
           ^
/usr/include/c++/4.8/cmath:1173:11: error: '::tgamma' has not been declared
   using ::tgamma;
           ^
/usr/include/c++/4.8/cmath:1174:11: error: '::tgammaf' has not been declared
   using ::tgammaf;
           ^
/usr/include/c++/4.8/cmath:1175:11: error: '::tgammal' has not been declared
   using ::tgammal;
           ^
/usr/include/c++/4.8/cmath:1177:11: error: '::trunc' has not been declared
   using ::trunc;
           ^
/usr/include/c++/4.8/cmath:1178:11: error: '::truncf' has not been declared
   using ::truncf;
           ^
/usr/include/c++/4.8/cmath:1179:11: error: '::truncl' has not been declared
   using ::truncl;
           ^
In file included from /usr/include/c++/4.8/random:50:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.h: In member function 'void std::geometric_distribution<_IntType>::param_type::_M_initialize()':
/usr/include/c++/4.8/bits/random.h:4041:36: error: call of overloaded 'log(double)' is ambiguous
  { _M_log_1_p = std::log(1.0 - _M_p); }
                                    ^
/usr/include/c++/4.8/bits/random.h:4041:36: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:357:3: note: constexpr float std::log(float)
   log(float __x)
   ^
/usr/include/c++/4.8/cmath:361:3: note: constexpr long double std::log(long double)
   log(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc: In member function 'void std::poisson_distribution<_IntType>::param_type::_M_initialize()':
/usr/include/c++/4.8/bits/random.tcc:1400:41: error: call of overloaded 'floor(double&)' is ambiguous
    const double __m = std::floor(_M_mean);
                                         ^
/usr/include/c++/4.8/bits/random.tcc:1400:41: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:279:3: note: constexpr float std::floor(float)
   floor(float __x)
   ^
/usr/include/c++/4.8/cmath:283:3: note: constexpr long double std::floor(long double)
   floor(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1401:32: error: call of overloaded 'log(double&)' is ambiguous
    _M_lm_thr = std::log(_M_mean);
                                ^
/usr/include/c++/4.8/bits/random.tcc:1401:32: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:357:3: note: constexpr float std::log(float)
   log(float __x)
   ^
/usr/include/c++/4.8/cmath:361:3: note: constexpr long double std::log(long double)
   log(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1402:32: error: call of overloaded 'lgamma(double)' is ambiguous
    _M_lfm = std::lgamma(__m + 1);
                                ^
/usr/include/c++/4.8/bits/random.tcc:1402:32: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:1406:3: note: constexpr float std::lgamma(float)
   lgamma(float __x)
   ^
/usr/include/c++/4.8/cmath:1410:3: note: constexpr long double std::lgamma(long double)
   lgamma(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1403:25: error: call of overloaded 'sqrt(const double&)' is ambiguous
    _M_sm = std::sqrt(__m);
                         ^
/usr/include/c++/4.8/bits/random.tcc:1403:25: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
   sqrt(float __x)
   ^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
   sqrt(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1407:22: error: call of overloaded 'log(double)' is ambiguous
              / __pi_4));
                      ^
/usr/include/c++/4.8/bits/random.tcc:1407:22: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:357:3: note: constexpr float std::log(float)
   log(float __x)
   ^
/usr/include/c++/4.8/cmath:361:3: note: constexpr long double std::log(long double)
   log(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1408:56: error: call of overloaded 'round(const double&)' is ambiguous
    _M_d = std::round(std::max(6.0, std::min(__m, __dx)));
                                                        ^
/usr/include/c++/4.8/bits/random.tcc:1408:56: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:1609:3: note: constexpr float std::round(float)
   round(float __x)
   ^
/usr/include/c++/4.8/cmath:1613:3: note: constexpr long double std::round(long double)
   round(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1410:31: error: call of overloaded 'sqrt(double)' is ambiguous
    _M_scx = std::sqrt(__cx / 2);
                               ^
/usr/include/c++/4.8/bits/random.tcc:1410:31: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
   sqrt(float __x)
   ^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
   sqrt(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1413:36: error: call of overloaded 'sqrt(double)' is ambiguous
    _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx);
                                    ^
/usr/include/c++/4.8/bits/random.tcc:1413:36: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
   sqrt(float __x)
   ^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
   sqrt(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1413:55: error: call of overloaded 'exp(double&)' is ambiguous
    _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx);
                                                       ^
/usr/include/c++/4.8/bits/random.tcc:1413:55: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:241:3: note: constexpr float std::exp(float)
   exp(float __x)
   ^
/usr/include/c++/4.8/cmath:245:3: note: constexpr long double std::exp(long double)
   exp(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1414:63: error: call of overloaded 'exp(double)' is ambiguous
    _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2))
                                                               ^
/usr/include/c++/4.8/bits/random.tcc:1414:63: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:241:3: note: constexpr float std::exp(float)
   exp(float __x)
   ^
/usr/include/c++/4.8/cmath:245:3: note: constexpr long double std::exp(long double)
   exp(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1419:31: error: call of overloaded 'exp(double)' is ambiguous
  _M_lm_thr = std::exp(-_M_mean);
                               ^
/usr/include/c++/4.8/bits/random.tcc:1419:31: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:241:3: note: constexpr float std::exp(float)
   exp(float __x)
   ^
/usr/include/c++/4.8/cmath:245:3: note: constexpr long double std::exp(long double)
   exp(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc: In member function 'std::poisson_distribution<_IntType>::result_type std::poisson_distribution<_IntType>::operator()(_UniformRandomNumberGenerator&, const std::poisson_distribution<_IntType>::param_type&)':
/usr/include/c++/4.8/bits/random.tcc:1477:27: error: call of overloaded 'floor(const double&)' is ambiguous
       __x = std::floor(__y);
                           ^
/usr/include/c++/4.8/bits/random.tcc:1477:27: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:279:3: note: constexpr float std::floor(float)
   floor(float __x)
   ^
/usr/include/c++/4.8/cmath:283:3: note: constexpr long double std::floor(long double)
   floor(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1486:26: error: call of overloaded 'ceil(const double&)' is ambiguous
       __x = std::ceil(__y);
                          ^
/usr/include/c++/4.8/bits/random.tcc:1486:26: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:184:3: note: constexpr float std::ceil(float)
   ceil(float __x)
   ^
/usr/include/c++/4.8/cmath:188:3: note: constexpr long double std::ceil(long double)
   ceil(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1504:26: error: call of overloaded 'ceil(const double&)' is ambiguous
       __x = std::ceil(__y);
                          ^
/usr/include/c++/4.8/bits/random.tcc:1504:26: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:184:3: note: constexpr float std::ceil(float)
   ceil(float __x)
   ^
/usr/include/c++/4.8/cmath:188:3: note: constexpr long double std::ceil(long double)
   ceil(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1509:52: error: call of overloaded 'lgamma(double)' is ambiguous
        > __param._M_lfm - std::lgamma(__x + __m + 1));
                                                    ^
/usr/include/c++/4.8/bits/random.tcc:1509:52: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:1406:3: note: constexpr float std::lgamma(float)
   lgamma(float __x)
   ^
/usr/include/c++/4.8/cmath:1410:3: note: constexpr long double std::lgamma(long double)
   lgamma(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc: In member function 'void std::binomial_distribution<_IntType>::param_type::_M_initialize()':
/usr/include/c++/4.8/bits/random.tcc:1615:33: error: call of overloaded 'log(double)' is ambiguous
           / (81 * __pi_4 * __1p)));
                                 ^
/usr/include/c++/4.8/bits/random.tcc:1615:33: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:357:3: note: constexpr float std::log(float)
   log(float __x)
   ^
/usr/include/c++/4.8/cmath:361:3: note: constexpr long double std::log(long double)
   log(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1616:43: error: call of overloaded 'round(const double&)' is ambiguous
    _M_d1 = std::round(std::max(1.0, __d1x));
                                           ^
/usr/include/c++/4.8/bits/random.tcc:1616:43: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:1609:3: note: constexpr float std::round(float)
   round(float __x)
   ^
/usr/include/c++/4.8/cmath:1613:3: note: constexpr long double std::round(long double)
   round(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1620:43: error: call of overloaded 'round(const double&)' is ambiguous
    _M_d2 = std::round(std::max(1.0, __d2x));
                                           ^
/usr/include/c++/4.8/bits/random.tcc:1620:43: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:1609:3: note: constexpr float std::round(float)
   round(float __x)
   ^
/usr/include/c++/4.8/cmath:1613:3: note: constexpr long double std::round(long double)
   round(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1624:33: error: call of overloaded 'sqrt(double)' is ambiguous
    _M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np));
                                 ^
/usr/include/c++/4.8/bits/random.tcc:1624:33: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
   sqrt(float __x)
   ^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
   sqrt(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1625:33: error: call of overloaded 'sqrt(double)' is ambiguous
    _M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * _M_t * __1p));
                                 ^
/usr/include/c++/4.8/bits/random.tcc:1625:33: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
   sqrt(float __x)
   ^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
   sqrt(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1627:25: error: call of overloaded 'exp(double&)' is ambiguous
    _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2;
                         ^
/usr/include/c++/4.8/bits/random.tcc:1627:25: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:241:3: note: constexpr float std::exp(float)
   exp(float __x)
   ^
/usr/include/c++/4.8/cmath:245:3: note: constexpr long double std::exp(long double)
   exp(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1632:48: error: call of overloaded 'exp(double)' is ambiguous
         * std::exp(-_M_d1 * _M_d1 / (2 * __s1s)));
                                                ^
/usr/include/c++/4.8/bits/random.tcc:1632:48: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:241:3: note: constexpr float std::exp(float)
   exp(float __x)
   ^
/usr/include/c++/4.8/cmath:245:3: note: constexpr long double std::exp(long double)
   exp(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1635:44: error: call of overloaded 'exp(double)' is ambiguous
     * std::exp(-_M_d2 * _M_d2 / (2 * __s2s)));
                                            ^
/usr/include/c++/4.8/bits/random.tcc:1635:44: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:241:3: note: constexpr float std::exp(float)
   exp(float __x)
   ^
/usr/include/c++/4.8/cmath:245:3: note: constexpr long double std::exp(long double)
   exp(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1636:33: error: call of overloaded 'lgamma(double)' is ambiguous
    _M_lf = (std::lgamma(__np + 1)
                                 ^
/usr/include/c++/4.8/bits/random.tcc:1636:33: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:1406:3: note: constexpr float std::lgamma(float)
   lgamma(float __x)
   ^
/usr/include/c++/4.8/cmath:1410:3: note: constexpr long double std::lgamma(long double)
   lgamma(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1638:34: error: call of overloaded 'log(double)' is ambiguous
    _M_lp1p = std::log(__pa / __1p);
                                  ^
/usr/include/c++/4.8/bits/random.tcc:1638:34: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:357:3: note: constexpr float std::log(float)
   log(float __x)
   ^
/usr/include/c++/4.8/cmath:361:3: note: constexpr long double std::log(long double)
   log(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1640:46: error: call of overloaded 'log(double)' is ambiguous
    _M_q = -std::log(1 - (__p12 - __pa) / __1p);
                                              ^
/usr/include/c++/4.8/bits/random.tcc:1640:46: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:357:3: note: constexpr float std::log(float)
   log(float __x)
   ^
/usr/include/c++/4.8/cmath:361:3: note: constexpr long double std::log(long double)
   log(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1644:28: error: call of overloaded 'log(double)' is ambiguous
  _M_q = -std::log(1 - __p12);
                            ^
/usr/include/c++/4.8/bits/random.tcc:1644:28: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:357:3: note: constexpr float std::log(float)
   log(float __x)
   ^
/usr/include/c++/4.8/cmath:361:3: note: constexpr long double std::log(long double)
   log(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc: In member function 'std::binomial_distribution<_IntType>::result_type std::binomial_distribution<_IntType>::operator()(_UniformRandomNumberGenerator&, const std::binomial_distribution<_IntType>::param_type&)':
/usr/include/c++/4.8/bits/random.tcc:1732:24: error: call of overloaded 'floor(const double&)' is ambiguous
    __x = std::floor(__y);
                        ^
/usr/include/c++/4.8/bits/random.tcc:1732:24: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:279:3: note: constexpr float std::floor(float)
   floor(float __x)
   ^
/usr/include/c++/4.8/cmath:283:3: note: constexpr long double std::floor(long double)
   floor(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1744:25: error: call of overloaded 'floor(double)' is ambiguous
    __x = std::floor(-__y);
                         ^
/usr/include/c++/4.8/bits/random.tcc:1744:25: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:279:3: note: constexpr float std::floor(float)
   floor(float __x)
   ^
/usr/include/c++/4.8/cmath:283:3: note: constexpr long double std::floor(long double)
   floor(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1755:27: error: call of overloaded 'floor(const double&)' is ambiguous
       __x = std::floor(__y);
                           ^
/usr/include/c++/4.8/bits/random.tcc:1755:27: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:279:3: note: constexpr float std::floor(float)
   floor(float __x)
   ^
/usr/include/c++/4.8/cmath:283:3: note: constexpr long double std::floor(long double)
   floor(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1767:28: error: call of overloaded 'floor(double)' is ambiguous
       __x = std::floor(-__y);
                            ^
/usr/include/c++/4.8/bits/random.tcc:1767:28: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:279:3: note: constexpr float std::floor(float)
   floor(float __x)
   ^
/usr/include/c++/4.8/cmath:283:3: note: constexpr long double std::floor(long double)
   floor(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc:1776:35: error: call of overloaded 'lgamma(double)' is ambiguous
         std::lgamma(__np + __x + 1)
                                   ^
/usr/include/c++/4.8/bits/random.tcc:1776:35: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:1406:3: note: constexpr float std::lgamma(float)
   lgamma(float __x)
   ^
/usr/include/c++/4.8/cmath:1410:3: note: constexpr long double std::lgamma(long double)
   lgamma(long double __x)
   ^
In file included from /usr/include/c++/4.8/random:52:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/bits/random.tcc: In member function 'std::piecewise_linear_distribution<_RealType>::result_type std::piecewise_linear_distribution<_RealType>::operator()(_UniformRandomNumberGenerator&, const std::piecewise_linear_distribution<_RealType>::param_type&)':
/usr/include/c++/4.8/bits/random.tcc:3289:33: error: call of overloaded 'sqrt(const double&)' is ambiguous
      __x += 0.5 * (std::sqrt(__d) - __b) / __a;
                                 ^
/usr/include/c++/4.8/bits/random.tcc:3289:33: note: candidates are:
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from expresie5.cpp:3:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
   sqrt(float __x)
   ^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
   sqrt(long double __x)
   ^
expresie5.cpp: In function 'int main()':
expresie5.cpp:9:1: error: 'cin' was not declared in this scope
 cin >> n;

 ^
expresie5.cpp:14:1: error: 'cout' was not declared in this scope
 cout << s;    

 ^

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema Expresie5 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.