Borderou de evaluare (job #2243143)
Utilizator | Data | 19 septembrie 2018 23:04:48 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:25:13: error: ‘LMAX’ was not declared in this scope
char needle[LMAX];
^~~~
user.cpp:26:15: error: ‘LMAX’ was not declared in this scope
char haystack[LMAX];
^~~~
user.cpp: In function ‘std::vector<int> buildAutomaton()’:
user.cpp:39:26: error: ‘s’ was not declared in this scope
while (k != 0 && s[i] != s[k]) {
^
user.cpp:43:13: error: ‘s’ was not declared in this scope
if (s[i] == s[k]) {
^
user.cpp: In function ‘std::pair<std::vector<int>, int> computeMatches(int)’:
user.cpp:69:26: error: ‘needle’ was not declared in this scope
while (k != 0 && needle[k] != haystack[i]) {
^~~~~~
user.cpp:69:39: error: ‘haystack’ was not declared in this scope
while (k != 0 && needle[k] != haystack[i]) {
^~~~~~~~
user.cpp:73:13: error: ‘needle’ was not declared in this scope
if (needle[k] == haystack[i]) {
^~~~~~
user.cpp:73:26: error: ‘haystack’ was not declared in this scope
if (needle[k] == haystack[i]) {
^~~~~~~~
user.cpp:86:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (firstMatches.size() < limit) {
~~~~~~~~~~~~~~~~~~~~^~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:100:22: error: ‘needle’ was not declared in this scope
std::cin.getline(needle, LMAX);
^~~~~~
user.cpp:101:22: error: ‘haystack’ was not declared in this scope
std::cin.getline(haystack, LMAX);
^~~~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !