Borderou de evaluare (job #2320659)
Utilizator | Data | 14 ianuarie 2019 23:28:02 | |
---|---|---|---|
Problema | GrEA | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Citire()':
main.cpp:102:8: error: ambiguous overload for 'operator>>' (operand types are 'InParser' and 'char*')
In >> V[0] + 1;
~~~^~~~~~~~~~~
main.cpp:25:12: note: candidate: InParser& InParser::operator>>(int&) <near match>
InParser& operator >> (int &n) {
^~~~~~~~
main.cpp:25:12: note: conversion of argument 1 would be ill-formed:
main.cpp:102:16: error: invalid conversion from 'char*' to 'int' [-fpermissive]
In >> V[0] + 1;
~~~~~^~~
main.cpp:102:16: error: cannot bind rvalue '(int)(((char*)(& V[0])) + 1u)' to 'int&'
main.cpp:42:12: note: candidate: InParser& InParser::operator>>(long long int&) <near match>
InParser& operator >> (long long &n) {
^~~~~~~~
main.cpp:42:12: note: conversion of argument 1 would be ill-formed:
main.cpp:102:16: error: invalid conversion from 'char*' to 'long long int' [-fpermissive]
In >> V[0] + 1;
~~~~~^~~
main.cpp:102:16: error: cannot bind rvalue '(long long int)(((char*)(& V[0])) + 1u)' to 'long long int&'
main.cpp:102:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
main.cpp:103:8: error: ambiguous overload for 'operator>>' (operand types are 'InParser' and 'char*')
In >> V[1] + 1;
~~~^~~~~~~~~~~
main.cpp:25:12: note: candidate: InParser& InParser::operator>>(int&) <near match>
InParser& operator >> (int &n) {
^~~~~~~~
main.cpp:25:12: note: conversion of argument 1 would be ill-formed:
main.cpp:103:16: error: invalid conversion from 'char*' to 'int' [-fpermissive]
In >> V[1] + 1;
~~~~~^~~
main.cpp:103:16: error: cannot bind rvalue '(int)(((char*)(& V[1])) + 1u)' to 'int&'
main.cpp:42:12: note: candidate: InParser& InParser::operator>>(long long int&) <near match>
InParser& operator >> (long long &n) {
^~~~~~~~
main.cpp:42:12: note: conversion of argument 1 would be ill-formed:
main.cpp:103:16: error: invalid conversion from 'char*' to 'long long int' [-fpermissive]
In >> V[1] + 1;
~~~~~^~~
main.cpp:103:16: error: cannot bind rvalue '(long long int)(((char*)(& V[1])) + 1u)' to 'long long int&'
main.cpp:103:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
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 !