Borderou de evaluare (job #3246671)
Utilizator | Data | 3 octombrie 2024 22:48:03 | |
---|---|---|---|
Problema | Joctv | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:11: error: 'i' was not declared in this scope
12 | for ( i = 1; i <= n; i++ )
| ^
main.cpp:13:14: error: 'j' was not declared in this scope
13 | for( j = 1; j <= n; j++ )
| ^
main.cpp:16:11: error: 'i' was not declared in this scope
16 | for ( i = 1; i <= n; i++ )
| ^
main.cpp:17:15: error: 'j' was not declared in this scope
17 | for ( j = 1; j <= n; j++ )
| ^
main.cpp:19:11: error: 'i' was not declared in this scope
19 | for ( i = 1; i <= n; i++ )
| ^
main.cpp:20:15: error: 'j' was not declared in this scope
20 | for ( j = 1; j <= n; j++ )
| ^
main.cpp:23:11: error: 'i' was not declared in this scope
23 | for ( i = 0; i < n; i++ )
| ^
main.cpp:24:15: error: 'j' was not declared in this scope
24 | for ( j = i + 1; j <= n; j++ )
| ^
main.cpp:27:66: error: reference to 'max' is ambiguous
27 | if ( s[j][l] - s[i][l] - s[j][k] + s[i][k] > max )
| ^~~
In file included from /usr/include/c++/12.2.1/string:50,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/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++/12.2.1/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:8:34: note: 'int max'
8 | int n, a[105][105], s[105][105], max, k, l;
| ^~~
main.cpp:28:25: error: reference to 'max' is ambiguous
28 | max = s[j][l] - s[i][l] - s[j][k] + s[i][k];
| ^~~
/usr/include/c++/12.2.1/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)
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !