Borderou de evaluare (job #1232191)
Utilizator | Data | 22 septembrie 2014 12:42:47 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:35:27: error: expected ‘)’ before ‘B’
if (matches(A, a_length B, i))
^
user.cpp:35:31: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
if (matches(A, a_length B, i))
^
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/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/basic_string.h:490:7: error: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ [-fpermissive]
basic_string(const _CharT* __s, const _Alloc& __a = _Alloc());
^
user.cpp:35:31: error: too few arguments to function ‘bool matches(std::string, int, std::string, int)’
if (matches(A, a_length B, i))
^
user.cpp:7:6: note: declared here
bool matches(string A, int a_length, string B, int start)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !