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

Codename Αποτέλεσμα
23-profitCompilation error
src_6896.cc:3:1: error: ‘define’ does not name a type; did you mean ‘dysize’?
define MAX_X 1005;
^~~~~~
dysize
src_6896.cc: In function ‘int main()’:
src_6896.cc:14:20: error: ‘MAX_X’ was not declared in this scope
double min_x = MAX_X;
^~~~~
src_6896.cc:18:17: error: ‘min’ was not declared in this scope
min_x = min(min_x, x);
^~~
src_6896.cc:18:17: note: suggested alternative:
In file included from /usr/include/c++/8/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/8/bits/stdc++.h:65,
from src_6896.cc:1:
/usr/include/c++/8/bits/stl_algo.h:3456:5: note: ‘std::min’
min(initializer_list<_Tp> __l, _Compare __comp)
^~~
src_6896.cc:20:21: error: ‘max’ was not declared in this scope
max_ratio = max(max_ratio, ratio);
^~~
src_6896.cc:20:21: note: suggested alternative:
In file included from /usr/include/c++/8/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/8/bits/stdc++.h:65,
from src_6896.cc:1:
/usr/include/c++/8/bits/stl_algo.h:3468:5: note: ‘std::max’
max(initializer_list<_Tp> __l, _Compare __comp)
^~~
Exited with error status 1


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