Код return answer, x, c; не должен был родиться в твоем мозгу для функции с типом результата void
Ты ведь даже не знаешь, какой конкретно стандарт C++ ты используешь.
#include <random>
#include <iostream>
using namespace std;
void generator(int& answer, int& x, int& c) {
random_device random_device;
mt19937 generator(random_device());
uniform_int_distribution<> distribution(1, 10);
int x = distribution(generator);
int c = distribution(generator);
int answer = x * c;
return answer, x, c;
}
int main() {
cout << generator();
}
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by gettext configure 0.21, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-shared
## --------- ##
## Platform. ##
## --------- ##
hostname = nikita-desktop
uname -m = x86_64
uname -r = 5.15.80-1-lts
uname -s = Linux
uname -v = #1 SMP Sat, 26 Nov 2022 20:23:30 +0000
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/bin
PATH: /usr/sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1943: checking for a BSD-compatible install
configure:2011: result: /usr/bin/install -c
configure:2022: checking whether build environment is sane
configure:2077: result: yes
configure:2228: checking for a thread-safe mkdir -p
configure:2267: result: /usr/bin/mkdir -p
configure:2274: checking for gawk
configure:2290: found /usr/bin/gawk
configure:2301: result: gawk
configure:2312: checking whether make sets $(MAKE)
configure:2334: result: yes
configure:2363: checking whether make supports nested variables
configure:2380: result: yes
configure:2469: checking whether UID '0' is supported by ustar format
configure:2472: result: yes
configure:2479: checking whether GID '0' is supported by ustar format
configure:2482: result: yes
configure:2490: checking how to create a ustar tar archive
configure:2501: tar --version
tar (GNU tar) 1.34
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
configure:2504: $? = 0
configure:2544: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:2547: $? = 0
configure:2551: tar -xf - <conftest.tar
configure:2554: $? = 0
configure:2556: cat conftest.dir/file
GrepMe
configure:2559: $? = 0
configure:2572: result: gnutar
configure:2641: checking build system type
configure:2655: result: x86_64-pc-linux-gnu
configure:2675: checking host system type
configure:2688: result: x86_64-pc-linux-gnu
configure:3390: checking that generated files are newer than configure
configure:3396: result: done
configure:3404: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by gettext config.status 0.21, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on nikita-desktop
config.status:765: creating Makefile
config.status:765: creating gnulib-local/Makefile
configure:4490: === configuring in gettext-runtime (/build/gettext-0.21/gettext-runtime)
configure:4553: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' '--disable-shared' --cache-file=/dev/null --srcdir=.
configure:4558: error: ./configure failed for gettext-runtime
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_EMACSLOADPATH_set=
ac_cv_env_EMACSLOADPATH_value=
ac_cv_env_EMACS_set=
ac_cv_env_EMACS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
am_cv_prog_tar_ustar=gnutar
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /build/gettext-0.21/build-aux/missing aclocal-1.16'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} /build/gettext-0.21/build-aux/missing autoconf'
AUTOHEADER='${SHELL} /build/gettext-0.21/build-aux/missing autoheader'
AUTOMAKE='${SHELL} /build/gettext-0.21/build-aux/missing automake-1.16'
AWK='gawk'
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS='-DPACKAGE_NAME=\"gettext\" -DPACKAGE_TARNAME=\"gettext\" -DPACKAGE_VERSION=\"0.21\" -DPACKAGE_STRING=\"gettext\ 0.21\" -DPACKAGE_BUGREPORT=\"bug-gettext@gnu.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"gettext\" -DVERSION=\"0.21\"'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EMACS=''
EMACSLOADPATH=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /build/gettext-0.21/build-aux/missing makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
PACKAGE='gettext'
PACKAGE_BUGREPORT='bug-gettext@gnu.org'
PACKAGE_NAME='gettext'
PACKAGE_STRING='gettext 0.21'
PACKAGE_TARNAME='gettext'
PACKAGE_URL=''
PACKAGE_VERSION='0.21'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='0.21'
YACC=''
YFLAGS=''
am__isrc=''
am__leading_dot='.'
am__tar='${AMTAR} chf - --format=ustar --owner=root --group=root "$$tardir"'
am__untar='tar -xf -'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='x86_64-pc-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /build/gettext-0.21/build-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=' gettext-runtime libtextstyle gettext-tools'
sysconfdir='${prefix}/etc'
target_alias=''