Borderou de evaluare (job #2861241)
Utilizator | Data | 3 martie 2022 18:42:39 | |
---|---|---|---|
Problema | Jocul Flip | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void total()':
main.cpp:9:3: error: expected unqualified-id before 'int'
9 | int i, j, max = 0;
| ^~~
main.cpp:10:7: error: 'i' was not declared in this scope
10 | for (i = 1; i <= n; i++) {
| ^
main.cpp:12:8: error: 'j' was not declared in this scope
12 | for (j = 1; j <= m; j++) {
| ^
main.cpp:20:15: error: reference to 'max' is ambiguous
20 | if (stotala> max) {
| ^~~
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/ostream:38,
from /usr/include/c++/10/iostream:39,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
main.cpp:6:18: note: 'int max'
6 | int a[100][100], max = 0, v[100], x, n, m;
| ^~~
main.cpp:21:3: error: reference to 'max' is ambiguous
21 | max = stotala;
| ^~~
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/ostream:38,
from /usr/include/c++/10/iostream:39,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
main.cpp:6:18: note: 'int max'
6 | int a[100][100], max = 0, v[100], x, n, m;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !