Problema | ncif | Operații I/O |
ncif.in /ncif.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #40785101 | Utilizator | |
Fișier | ncif.cpp | Dimensiune | 349 B |
Data încărcării | 20 Decembrie 2022, 16:42 | Scor / rezultat | Eroare de compilare |
ncif.cpp:8:22: error: expected ';' at end of member declaration struct nr{int a; int b} ^ ncif.cpp:8:23: error: expected ';' after struct definition struct nr{int a; int b} ^ ncif.cpp: In function 'int main()': ncif.cpp:18:38: error: no matching function for call to 'log(int, int&)' cout << int(v[i].b*log(10,v[i].a))+1 << '\n'; ^ ncif.cpp:18:38: note: candidates are: In file included from /usr/include/features.h:374:0, from /usr/include/assert.h:35, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, from ncif.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:109:1: note: double log(double) __MATHCALL (log,, (_Mdouble_ __x)); ^ /usr/include/i386-linux-gnu/bits/mathcalls.h:109:1: note: candidate expects 1 argument, 2 provided In file included from /usr/include/c++/4.8/valarray:587:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:94, from ncif.cpp:1: /usr/include/c++/4.8/bits/valarray_after.h:453:5: note: template<class _Tp> std::_Expr<std::_UnClos<std::_Log, std::_ValArray, _Tp>, _Tp> std::log(const std::valarray<_Tp>&) _DEFINE_EXPR_UNARY_FUNCTION(log, _Log) ^ /usr/include/c++/4.8/bits/valarray_after.h:453:5: note: template argument deduction/substitution failed: ncif.cpp:18:38: note: mismatched types 'const std::valarray<_Tp>' and 'int' cout << int(v[i].b*log(10,v[i].a))+1 << '\n'; ^ In file included from /usr/include/c++/4.8/valarray:587:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:94, from ncif.cpp:1: /usr/include/c++/4.8/bits/valarray_after.h:453:5: note: template<class _Dom> std::_Expr<std::_UnClos<std::_Log, std::_Expr, _Dom>, typename _Dom::value_type> std::log(const std::_Expr<_Dom1, typename _Dom1::value_type>&) _DEFINE_EXPR_UNARY_FUNCTION(log, _Log) ^ /usr/include/c++/4.8/bits/valarray_after.h:453:5: note: template argument deduction/substitution failed: ncif.cpp:18:38: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int' cout << int(v[i].b*log(10,v[i].a))+1 << '\n'; ^ In file included from /usr/include/c++/4.8/ccomplex:38:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52, from ncif.cpp:1: /usr/include/c++/4.8/complex:783:5: note: template<class _Tp> std::complex<_Tp> std::log(const std::complex<_Tp>&) log(const complex<_Tp>& __z) { return __complex_log(__z.__rep()); } ^ /usr/include/c++/4.8/complex:783:5: note: template argument deduction/substitution failed: ncif.cpp:18:38: note: mismatched types 'const std::complex<_Tp>' and 'int' cout << int(v[i].b*log(10,v[i].a))+1 << '\n'; ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:41:0, from ncif.cpp:1: /usr/include/c++/4.8/cmath:369:5: note: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::log(_Tp) log(_Tp __x) ^ /usr/include/c++/4.8/cmath:369:5: note: template argument deduction/substitution failed: ncif.cpp:18:38: note: candidate expects 1 argument, 2 provided cout << int(v[i].b*log(10,v[i].a))+1 << '\n'; ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:41:0, from ncif.cpp:1: /usr/include/c++/4.8/cmath:361:3: note: constexpr long double std::log(long double) log(long double __x) ^ /usr/include/c++/4.8/cmath:361:3: note: candidate expects 1 argument, 2 provided /usr/include/c++/4.8/cmath:357:3: note: constexpr float std::log(float) log(float __x) ^ /usr/include/c++/4.8/cmath:357:3: note: candidate expects 1 argument, 2 provided
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ncif 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ă.