Borderou de evaluare (job #1441352)

Utilizator akaprosAna Kapros akapros Data 24 mai 2015 10:08:20
Problema Coins Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:1:11: error: expected unqualified-id before numeric constant #define n 22 ^ user.cpp:1:11: error: expected unqualified-id before numeric constant #define n 22 ^ /usr/include/c++/4.8/bits/random.h: In constructor ‘std::chi_squared_distribution<_RealType>::chi_squared_distribution(const std::chi_squared_distribution<_RealType>::param_type&)’: user.cpp:1:11: error: expected unqualified-id before numeric constant #define n 22 ^ 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 user.cpp:6: /usr/include/c++/4.8/bits/random.h: In member function ‘std::chi_squared_distribution<_RealType>::result_type std::chi_squared_distribution<_RealType>::operator()(_UniformRandomNumberGenerator&, const std::chi_squared_distribution<_RealType>::param_type&)’: /usr/include/c++/4.8/bits/random.h:2817:39: error: expected primary-expression before ‘(’ token return 2 * _M_gd(__urng, param_type(__p.n() / 2)); ^ user.cpp:1:11: error: expected unqualified-id before numeric constant #define n 22 ^ /usr/include/c++/4.8/bits/random.h: In member function ‘void std::chi_squared_distribution<_RealType>::__generate(_ForwardIterator, _ForwardIterator, _UniformRandomNumberGenerator&, const std::chi_squared_distribution<_RealType>::param_type&)’: user.cpp:1:11: error: expected unqualified-id before numeric constant #define n 22 ^ /usr/include/c++/4.8/bits/random.h: In member function ‘void std::chi_squared_distribution<_RealType>::__generate(std::chi_squared_distribution<_RealType>::result_type*, std::chi_squared_distribution<_RealType>::result_type*, _UniformRandomNumberGenerator&, const std::chi_squared_distribution<_RealType>::param_type&)’: user.cpp:1:11: error: expected unqualified-id before numeric constant #define n 22 ^ /usr/include/c++/4.8/bits/random.h: At global scope: user.cpp:1:11: error: expected unqualified-id before numeric constant #define n 22 ^ user.cpp:1:11: error: expected unqualified-id before numeric constant #define n 22 ^ /usr/include/c++/4.8/bits/random.h: In constructor ‘std::fisher_f_distribution<_RealType>::fisher_f_distribution(const std::fisher_f_distribution<_RealType>::param_type&)’: user.cpp:1:11: error: expected unqualified-id before numeric constant #define n 22 ^ 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 user.cpp:6: /usr/include/c++/4.8/bits/random.h: In member function ‘std::fisher_f_distribution<_RealType>::result_type std::fisher_f_distribution<_RealType>::operator()(_UniformRandomNumberGenerator&)’: /usr/include/c++/4.8/bits/random.h:3233:32: error: expression cannot be used as a function { return (_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m()); } ^ /usr/include/c++/4.8/bits/random.h: In member function ‘std::fisher_f_distribution<_RealType>::result_type std::fisher_f_distribution<_RealType>::operator()(_UniformRandomNumberGenerator&, const std::fisher_f_distribution<_RealType>::param_type&)’: /usr/include/c++/4.8/bits/random.h:3242:58: error: expression cannot be used as a function

Ceva nu functioneaza?