Borderou de evaluare (job #795074)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | em1 (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 15 nov. 2024 20:20:55 | Scor | 0 |
Raport evaluator
Eroare de compilare:
cc1plus: error: '::main' must return 'int'
main.cpp: In function 'int main()':
main.cpp:26:23: error: 'linie' was not declared in this scope; did you mean 'line'?
26 | while(getline(cin,linie))A.pb(linie);
| ^~~~~
| line
main.cpp:35:13: error: 'coloana' was not declared in this scope; did you mean 'clone'?
35 | coloana+=A[j][i-1];
| ^~~~~~~
| clone
main.cpp:39:16: error: 'coloana' was not declared in this scope; did you mean 'clone'?
39 | if(coloana.substr(l,m)==S)
| ^~~~~~~
| clone
main.cpp:46:19: error: no matching function for call to 'max(int, long long int)'
46 | int st=max(0,i-n);
| ~~~^~~~~~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/algorithm:60,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:51,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
main.cpp:46:19: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
46 | int st=max(0,i-n);
| ~~~^~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed:
main.cpp:46:19: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
46 | int st=max(0,i-n);
| ~~~^~~~~~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/algorithm:61:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algo.h:5795:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
5795 | max(initializer_list<_Tp> __l)
| ^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algo.h:5795:5: note: template argument deduction/substitution failed:
main.cpp:46:19: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
46 | int st=max(0,i-n);
| ~~~^~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algo.h:5805:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
5805 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algo.h:5805:5: note: template argument deduction/substitution failed:
main.cpp:46:19: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
46 | int st=max(0,i-n);
| ~~~^~~~~~~
main.cpp:61:30: error: 'out' was not declared in this scope