Borderou de evaluare (job #2921492)
Utilizator | Data | 31 august 2022 13:53:53 | |
---|---|---|---|
Problema | Ferma | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
2 | #import <algorithm>
| ^~~~~~
main.cpp:3:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
3 | #import <vector>
| ^~~~~~
main.cpp:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
4 | #import <map>
| ^~~~~~
main.cpp:5:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
5 | #import <set>
| ^~~~~~
main.cpp:6:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
6 | #import <deque>
| ^~~~~~
main.cpp:7:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
7 | #import <queue>
| ^~~~~~
main.cpp:8:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
8 | #import <cassert>
| ^~~~~~
main.cpp:10:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
10 | #import <cstring>
| ^~~~~~
main.cpp:11:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
11 | #import <cctype>
| ^~~~~~
main.cpp:12:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
12 | #import <cstdlib>
| ^~~~~~
main.cpp:13:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
13 | #import <stack>
| ^~~~~~
main.cpp:16:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
16 | main()
| ^~~~
main.cpp: In function 'int main()':
main.cpp:49:20: error: no matching function for call to 'max(long long int&, int)'
49 | cout<<max(rez,0);
| ^
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
main.cpp:49:20: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !