Borderou de evaluare (job #2352108)
Utilizator | Data | 22 februarie 2019 23:03:23 | |
---|---|---|---|
Problema | Markon | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Rezolvare()':
main.cpp:185:9: error: ambiguous overload for 'operator<<' (operand types are 'OutParser' and 'std::vector<int>::size_type {aka long unsigned int}')
Out << Markon.size() << '\n';
~~~~^~~~~~~~~~~~~~~~
main.cpp:89:16: note: candidate: OutParser& OutParser::operator<<(int)
OutParser& operator << (int vu32) {
^~~~~~~~
main.cpp:99:16: note: candidate: OutParser& OutParser::operator<<(long long int)
OutParser& operator << (long long vu64) {
^~~~~~~~
main.cpp:109:16: note: candidate: OutParser& OutParser::operator<<(char)
OutParser& operator << (char ch) {
^~~~~~~~
main.cpp:186:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<Markon.size(); ++i, Out << '\n')
~^~~~~~~~~~~~~~
main.cpp: In member function 'char InParser::read_ch()':
main.cpp:13:29: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(buff, 1, 4096, fin);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !