Borderou de evaluare (job #2055952)
Utilizator | Data | 3 noiembrie 2017 22:42:57 | |
---|---|---|---|
Problema | Invcs | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int solve(int)’:
user.cpp:17:38: error: ‘max’ was not declared in this scope
best = max(best, v[i]);
^
user.cpp:17:38: note: suggested alternative:
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: ‘std::max’
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
user.cpp: In function ‘int main()’:
user.cpp:28:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &n);
^
user.cpp:30:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !