Borderou de evaluare (job #3284317)

Utilizator deyrownntdeyrownnt deyrownnt Data 11 martie 2025 14:11:13
Problema ADN Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int findOverlap(char*, char*)': main.cpp:26:16: error: 'strlen' was not declared in this scope 26 | int lenA = strlen(a); | ^~~~~~ main.cpp:4:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 3 | #include <fstream> +++ |+#include <cstring> 4 | #include <string> main.cpp: In function 'void mergeWithOverlap(char*, char*, char*, int)': main.cpp:48:5: error: 'strcpy' was not declared in this scope 48 | strcpy(result, a); | ^~~~~~ main.cpp:48:5: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:49:5: error: 'strcat' was not declared in this scope 49 | strcat(result, b + overlap); | ^~~~~~ main.cpp:49:5: note: 'strcat' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp: In function 'int main()': main.cpp:113:17: error: 'strstr' was not declared in this scope 113 | if (strstr(rezultat, secvente[bestI]) != NULL) { | ^~~~~~ main.cpp:113:17: note: 'strstr' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:129:17: error: 'strstr' was not declared in this scope 129 | if (strstr(rezultat, secvente[realI]) != NULL) { | ^~~~~~ main.cpp:129:17: note: 'strstr' is defined in header '<cstring>'; did you forget to '#include <cstring>'? Non zero exit status: 1

Ceva nu functioneaza?