#2599
a16
Scrieți un program care cere de la tastatură un număr a
(de o cifră) și care afișează valoarea expresiei \(a^{16}\). Aplicați de cât mai puține ori operatorul de înmulțire.
Problema | a16 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16106599 | Utilizator | |
Fișier | a16.cpp | Dimensiune | 525 B |
Data încărcării | 03 Iunie 2019, 22:12 | Scor / rezultat | Eroare de compilare |
a16.cpp:9:2: error: stray '\302' in program cin>>a; ^ a16.cpp:9:2: error: stray '\240' in program a16.cpp:9:2: error: stray '\302' in program a16.cpp:9:2: error: stray '\240' in program a16.cpp:11:2: error: stray '\302' in program a = a*a; ^ a16.cpp:11:2: error: stray '\240' in program a16.cpp:11:2: error: stray '\302' in program a16.cpp:11:2: error: stray '\240' in program a16.cpp:13:2: error: stray '\302' in program a = a*a; ^ a16.cpp:13:2: error: stray '\240' in program a16.cpp:13:2: error: stray '\302' in program a16.cpp:13:2: error: stray '\240' in program a16.cpp:15:2: error: stray '\302' in program a = a*a; ^ a16.cpp:15:2: error: stray '\240' in program a16.cpp:15:2: error: stray '\302' in program a16.cpp:15:2: error: stray '\240' in program a16.cpp:17:2: error: stray '\302' in program a = a*a; ^ a16.cpp:17:2: error: stray '\240' in program a16.cpp:17:2: error: stray '\302' in program a16.cpp:17:2: error: stray '\240' in program a16.cpp:19:2: error: stray '\302' in program cout<<a; ^ a16.cpp:19:2: error: stray '\240' in program a16.cpp:19:2: error: stray '\302' in program a16.cpp:19:2: error: stray '\240' in program a16.cpp:21:2: error: stray '\302' in program return 0; ^ a16.cpp:21:2: error: stray '\240' in program a16.cpp:21:2: error: stray '\302' in program a16.cpp:21:2: error: stray '\240' in program a16.cpp:40:2: error: stray '\302' in program long double n; ^ a16.cpp:40:2: error: stray '\240' in program a16.cpp:40:2: error: stray '\302' in program a16.cpp:40:2: error: stray '\240' in program a16.cpp:42:2: error: stray '\302' in program cin>>n; ^ a16.cpp:42:2: error: stray '\240' in program a16.cpp:42:2: error: stray '\302' in program a16.cpp:42:2: error: stray '\240' in program a16.cpp:44:2: error: stray '\302' in program cout<<setprecision(100)<<pow(n, 16); ^ a16.cpp:44:2: error: stray '\240' in program a16.cpp:44:2: error: stray '\302' in program a16.cpp:44:2: error: stray '\240' in program a16.cpp:50:1: error: stray '\310' in program Citește mai multe pe Brainly.ro - https://brainly.ro/tema/5368358#readmore ^ a16.cpp:50:1: error: stray '\231' in program a16.cpp:25:1: error: 'Solutia' does not name a type Solutia mea(100 puncte): ^ In file included from a16.cpp:29:0: /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; ^ a16.cpp: In function 'int main()': a16.cpp:36:5: error: redefinition of 'int main()' int main() ^ a16.cpp:7:5: error: 'int main()' previously defined here int main () { ^ a16.cpp: At global scope: a16.cpp:50:1: error: 'Cite' does not name a type Citește mai multe pe Brainly.ro - https://brainly.ro/tema/5368358#readmore ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema a16 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
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ă.