Borderou de evaluare (job #3218635)
Utilizator | Data | 27 martie 2024 16:42:26 | |
---|---|---|---|
Problema | Deque | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:35: error: redefinition of 'int p'
6 | int u,p,n,i,v[5000005],m[5000005],p,u;
| ^
main.cpp:6:7: note: 'int p' previously declared here
6 | int u,p,n,i,v[5000005],m[5000005],p,u;
| ^
main.cpp:6:37: error: redefinition of 'int u'
6 | int u,p,n,i,v[5000005],m[5000005],p,u;
| ^
main.cpp:6:5: note: 'int u' previously declared here
6 | int u,p,n,i,v[5000005],m[5000005],p,u;
| ^
main.cpp: In function 'int main()':
main.cpp:10:13: error: 'k' was not declared in this scope
10 | fin>>n>>k;
| ^
main.cpp:11:5: error: 'd' was not declared in this scope
11 | d[1]=1;
| ^
main.cpp:23:9: error: no match for 'operator<<' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'long long int')
23 | fout<<sum;
| ~~~~^~~~~
| | |
| | long long int
| std::ifstream {aka std::basic_ifstream<char>}
main.cpp:23:9: note: candidate: 'operator<<(int, long long int)' (built-in)
23 | fout<<sum;
| ~~~~^~~~~
main.cpp:23:9: note: no known conversion for argument 1 from 'std::ifstream' {aka 'std::basic_ifstream<char>'} to 'int'
In file included from /usr/include/c++/12.2.1/regex:66,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/regex.h:1679:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1679 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/regex.h:1679:5: note: template argument deduction/substitution failed:
main.cpp:23:11: note: 'std::ifstream' {aka 'std::basic_ifstream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
23 | fout<<sum;
| ^~~
In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:45:
/usr/include/c++/12.2.1/cstddef:123:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
123 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/12.2.1/cstddef:123:5: note: template argument deduction/substitution failed:
main.cpp:23:5: note: cannot convert 'fout' (type 'std::ifstream' {aka 'std::basic_ifstream<char>'}) to type 'std::byte'
23 | fout<<sum;
| ^~~~
In file included from /usr/include/c++/12.2.1/bits/basic_string.h:47,
from /usr/include/c++/12.2.1/string:53,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !