Borderou de evaluare (job #3346987)

Utilizator RDumitruGRoman Gheorghe Dumitru RDumitruG Data 15 martie 2026 14:20:01
Problema CheatGPT Status done
Runda Universitatea Tehnică din Cluj-Napoca - 2026 - Concurs Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void rec(char*, char*, char*, char*, int&)': main.cpp:13:21: error: 'strlen' was not declared in this scope 13 | while(nr != strlen(b)) | ^~~~~~ main.cpp:3:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 2 | #include <strings.h> +++ |+#include <cstring> 3 | FILE *f=fopen("cheatgpt.in","r"); main.cpp:16:17: error: 'strstr' was not declared in this scope 16 | p = strstr(a2,k); | ^~~~~~ main.cpp:16:17: note: 'strstr' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:20:13: error: 'strcpy' was not declared in this scope 20 | strcpy(k,s+nr-2); | ^~~~~~ main.cpp:20:13: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:25:12: error: 'strcmp' was not declared in this scope 25 | if(strcmp(s,b)!=0) | ^~~~~~ main.cpp:25:12: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:28:17: error: 'strchr' was not declared in this scope 28 | d = strchr(a2,s[0]); | ^~~~~~ main.cpp:28:17: note: 'strchr' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:31:13: error: 'strcpy' was not declared in this scope 31 | strcpy(aux,a2+3); | ^~~~~~ main.cpp:31:13: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp: In function 'int main()': main.cpp:58:14: error: 'strlen' was not declared in this scope 58 | if(b[strlen(b)-1]=='\n') | ^~~~~~ main.cpp:58:14: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:60:14: error: 'strlen' was not declared in this scope 60 | if(a[strlen(a)-1]=='\n') | ^~~~~~ main.cpp:60:14: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:62:24: error: 'strlen' was not declared in this scope 62 | for(int i =0;i<strlen(a)-1;i++) | ^~~~~~ main.cpp:62:24: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:68:13: error: 'strcpy' was not declared in this scope 68 | strcpy(k,s); | ^~~~~~ main.cpp:68:13: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'? Non zero exit status: 1

Ceva nu functioneaza?