Borderou de evaluare (job #1009032)

Utilizator rares96cheseliRares Cheseli rares96cheseli Data 12 octombrie 2013 13:17:36
Problema Dezastru Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:10:8: error: ‘N’ was not declared in this scope f>>N>>K; ^ user.cpp:10:11: error: ‘K’ was not declared in this scope f>>N>>K; ^ user.cpp:11:33: error: ‘p’ was not declared in this scope for (int i=1; i<=N; ++i) f>>p[i]; ^ user.cpp:13:37: error: no matching function for call to ‘fabs()’ g<<fixed<<setprecision(6)<<fabs()<<'\n'; ^ user.cpp:13:37: note: candidates are: In file included from /usr/include/features.h:346:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420, from /usr/local/include/c++/4.8.0/iosfwd:38, from /usr/local/include/c++/4.8.0/ios:38, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/include/bits/mathcalls.h:182:1: note: double fabs(double) __MATHCALLX (fabs,, (_Mdouble_ __x), (__const__)); ^ /usr/include/bits/mathcalls.h:182:1: note: candidate expects 1 argument, 0 provided In file included from user.cpp:3:0: /usr/local/include/c++/4.8.0/cmath:272:5: note: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::fabs(_Tp) fabs(_Tp __x) ^ /usr/local/include/c++/4.8.0/cmath:272:5: note: template argument deduction/substitution failed: user.cpp:13:37: note: candidate expects 1 argument, 0 provided g<<fixed<<setprecision(6)<<fabs()<<'\n'; ^ In file included from user.cpp:3:0: /usr/local/include/c++/4.8.0/cmath:264:3: note: constexpr long double std::fabs(long double) fabs(long double __x) ^ /usr/local/include/c++/4.8.0/cmath:264:3: note: candidate expects 1 argument, 0 provided /usr/local/include/c++/4.8.0/cmath:260:3: note: constexpr float std::fabs(float) fabs(float __x) ^ /usr/local/include/c++/4.8.0/cmath:260:3: note: candidate expects 1 argument, 0 provided

Ceva nu functioneaza?