Borderou de evaluare (job #1501766)
Utilizator | Data | 13 octombrie 2015 20:11:35 | |
---|---|---|---|
Problema | Noname | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:30:11: error: ‘maxSize’ was not declared in this scope
char buf[maxSize];
^
user.cpp: In member function ‘void pfstream::move()’:
user.cpp:34:16: error: ‘maxSize’ was not declared in this scope
if(cursor == maxSize) {
^
user.cpp:36:10: error: ‘buf’ was not declared in this scope
fread(buf, maxSize, 1, f);
^
user.cpp: In constructor ‘pfstream::pfstream(const char*)’:
user.cpp:48:9: error: ‘buf’ was not declared in this scope
fread(buf, maxSize, 1, f);
^
user.cpp:48:14: error: ‘maxSize’ was not declared in this scope
fread(buf, maxSize, 1, f);
^
user.cpp: In member function ‘pfstream& pfstream::operator>>(int&)’:
user.cpp:53:18: error: ‘buf’ was not declared in this scope
while(!isdigit(buf[cursor])) {
^
user.cpp:59:17: error: ‘buf’ was not declared in this scope
while(isdigit(buf[cursor])) {
^
user.cpp: In function ‘int main()’:
user.cpp:79:12: error: no match for ‘operator>>’ (operand types are ‘pfstream’ and ‘short int’)
in >> x;
^
user.cpp:79:12: note: candidates are:
user.cpp:51:19: note: pfstream& pfstream::operator>>(int&)
inline pfstream &operator >> (int& N) {
^
user.cpp:51:19: note: no known conversion for argument 1 from ‘short int’ to ‘int&’
In file included from /usr/include/c++/4.8/string:53:0,
from user.cpp:4:
/usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)
operator>>(basic_istream<_CharT, _Traits>& __in,
^
/usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed:
user.cpp:79:15: note: ‘pfstream’ is not derived from ‘std::basic_istream<_CharT, _Traits>’
in >> x;
^
In file included from /usr/include/c++/4.8/istream:879:0,
from /usr/include/c++/4.8/iostream:40,
from user.cpp:6:
/usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
^
/usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed:
user.cpp:79:15: note: ‘pfstream’ is not derived from ‘std::basic_istream<_CharT, _Traits>’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !