Borderou de evaluare (job #3346917)
| Utilizator | Data | 15 martie 2026 13:20:29 | |
|---|---|---|---|
| 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 'int cauta(char*, char)':
main.cpp:11:20: error: 'strlen' was not declared in this scope
11 | for(int i =0;i<strlen(a);i++)
| ^~~~~~
main.cpp:3:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
2 | #include <strings.h>
+++ |+#include <cstring>
3 | //#include <string.h>
main.cpp: In function 'void sterge(char*, char)':
main.cpp:20:22: error: 'strlen' was not declared in this scope
20 | for(int i =poz;i<strlen(a)-1;i++ )
| ^~~~~~
main.cpp:20:22: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp: In function 'void rec(char*, char*, char*, char*, int&, int&)':
main.cpp:29:21: error: 'strlen' was not declared in this scope
29 | while(nr != strlen(b)-1)
| ^~~~~~
main.cpp:29:21: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:32:17: error: 'strstr' was not declared in this scope
32 | p = strstr(a2,k);
| ^~~~~~
main.cpp:32:17: note: 'strstr' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:35:13: error: 'strcpy' was not declared in this scope
35 | strcpy(aux,p+2);
| ^~~~~~
main.cpp:35:13: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:42:12: error: 'strcmp' was not declared in this scope
42 | if(strcmp(s,b)!=0)
| ^~~~~~
main.cpp:42:12: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp: In function 'int main()':
main.cpp:72:9: error: 'strcpy' was not declared in this scope
72 | strcpy(a2,a);
| ^~~~~~
main.cpp:72:9: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:73:24: error: 'strlen' was not declared in this scope
73 | for(int i =0;i<strlen(a)-1;i++)
| ^~~~~~
main.cpp:73:24: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp: In function 'int cauta(char*, char)':
main.cpp:11:13: warning: control reaches end of non-void function [-Wreturn-type]
11 | for(int i =0;i<strlen(a);i++)
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
