Borderou de evaluare (job #1806653)
Utilizator | Data | 15 noiembrie 2016 16:39:13 | |
---|---|---|---|
Problema | Bool | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int factor()’:
user.cpp:40:9: warning: unused variable ‘semn’ [-Wunused-variable]
int semn = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:72:17: error: no matching function for call to ‘getline(std::ifstream&, char [100001])’
getline(fp,s);
^
user.cpp:72:17: note: candidates are:
In file included from /usr/include/stdio.h:931:0,
from /usr/include/c++/4.8/cstdio:42,
from /usr/include/c++/4.8/ext/string_conversions.h:43,
from /usr/include/c++/4.8/bits/basic_string.h:2815,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/stdio.h:116:1: note: __ssize_t getline(char**, size_t*, FILE*)
getline (char **__lineptr, size_t *__n, FILE *__stream)
^
/usr/include/i386-linux-gnu/bits/stdio.h:116:1: note: candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/4.8/string:52:0,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/basic_string.h:2793:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>& __is,
^
/usr/include/c++/4.8/bits/basic_string.h:2793:5: note: template argument deduction/substitution failed:
user.cpp:72:17: note: mismatched types ‘std::basic_string<_CharT, _Traits, _Alloc>’ and ‘char [100001]’
getline(fp,s);
^
In file included from /usr/include/c++/4.8/string:53:0,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/basic_string.tcc:1068:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>& __in,
^
/usr/include/c++/4.8/bits/basic_string.tcc:1068:5: note: template argument deduction/substitution failed:
user.cpp:72:17: note: mismatched types ‘std::basic_string<_CharT, _Traits, _Alloc>’ and ‘char [100001]’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !