Αποτελέσματα

Codename Αποτέλεσμα
30-agoraCompilation error
src_6677.cc: In function ‘int main()’:
src_6677.cc:45:27: error: ‘bestLcm’ was not declared in this scope
printf("%lld %lld\n", bestLcm, bestIndex);
^~~~~~~
src_6677.cc:45:27: note: suggested alternative: ‘bestEKP’
printf("%lld %lld\n", bestLcm, bestIndex);
^~~~~~~
bestEKP
src_6677.cc:48:12: error: too few arguments to function ‘int printf(const char*, ...)’
printf();
^
In file included from /usr/include/c++/8/cstdio:42,
from /usr/include/c++/8/ext/string_conversions.h:43,
from /usr/include/c++/8/bits/basic_string.h:6400,
from /usr/include/c++/8/string:52,
from /usr/include/c++/8/bits/locale_classes.h:40,
from /usr/include/c++/8/bits/ios_base.h:41,
from /usr/include/c++/8/ios:42,
from /usr/include/c++/8/ostream:38,
from /usr/include/c++/8/iostream:39,
from src_6677.cc:1:
/usr/include/stdio.h:332:12: note: declared here
extern int printf (const char *__restrict __format, ...);
^~~~~~
Exited with error status 1


Καινούργια υποβολή:
Όλες οι υποβολές:
Έχεις λάθος που δεν καταλαβαίνεις; Ρώτα