Borderou de evaluare (job #2766185)
Utilizator | Data | 31 iulie 2021 12:30:43 | |
---|---|---|---|
Problema | Petreceri | Status | done |
Runda | Summer Challenge 2021 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:83:8: error: ambiguous overload for 'operator>>' (operand types are 'InParser' and 'int64_t {aka long int}')
in >> a[i];
~~~^~~~~~~
main.cpp:39:13: note: candidate: InParser& InParser::operator>>(int&) <near match>
InParser& operator >> (int &n) {
^~~~~~~~
main.cpp:39:13: note: conversion of argument 1 would be ill-formed:
main.cpp:83:14: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
in >> a[i];
~~~^
main.cpp:56:13: note: candidate: InParser& InParser::operator>>(long long int&) <near match>
InParser& operator >> (long long &n) {
^~~~~~~~
main.cpp:56:13: note: conversion of argument 1 would be ill-formed:
main.cpp:83:14: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
in >> a[i];
~~~^
main.cpp:86:8: error: ambiguous overload for 'operator>>' (operand types are 'InParser' and 'int64_t {aka long int}')
in >> c[i];
~~~^~~~~~~
main.cpp:39:13: note: candidate: InParser& InParser::operator>>(int&) <near match>
InParser& operator >> (int &n) {
^~~~~~~~
main.cpp:39:13: note: conversion of argument 1 would be ill-formed:
main.cpp:86:14: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
in >> c[i];
~~~^
main.cpp:56:13: note: candidate: InParser& InParser::operator>>(long long int&) <near match>
InParser& operator >> (long long &n) {
^~~~~~~~
main.cpp:56:13: note: conversion of argument 1 would be ill-formed:
main.cpp:86:14: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
in >> c[i];
~~~^
main.cpp: In member function 'char InParser::read_ch()':
main.cpp:27:32: 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 !