Borderou de evaluare (job #2823959)

Utilizator lolismekAlex Jerpelea lolismek Data 30 decembrie 2021 12:45:39
Problema Lampa Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:23:5: warning: "/*" within comment [-Wcomment] 23 | /* | main.cpp: In function 'void works(const char*, const char*)': main.cpp:75:23: error: 'strlen' was not declared in this scope 75 | int i, p = 0, n = strlen(a), m = strlen(b); | ^~~~~~ main.cpp:61:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 60 | #include <fstream> +++ |+#include <cstring> 61 | #include <string> main.cpp:80:17: error: 'memcmp' was not declared in this scope 80 | if (memcmp(S.c_str()+p, a, n)) return; | ^~~~~~ main.cpp:80:17: note: 'memcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:85:40: error: 'm' was not declared in this scope 85 | if (memcmp(S.c_str()+p, b, m)) return; | ^ main.cpp:85:17: error: 'memcmp' was not declared in this scope 85 | if (memcmp(S.c_str()+p, b, m)) return; | ^~~~~~ main.cpp:85:17: note: 'memcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:86:18: error: 'm' was not declared in this scope 86 | p += m; | ^ Non zero exit status: 1

Ceva nu functioneaza?