Borderou de evaluare (job #3346915)
| Utilizator | Data | 15 martie 2026 13:18:50 | |
|---|---|---|---|
| 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:10:20: error: 'strlen' was not declared in this scope
10 | 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 | FILE *f=fopen("cheatgpt.in","r");
main.cpp: In function 'void sterge(char*, char)':
main.cpp:19:22: error: 'strlen' was not declared in this scope
19 | for(int i =poz;i<strlen(a)-1;i++ )
| ^~~~~~
main.cpp:19: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:28:21: error: 'strlen' was not declared in this scope
28 | while(nr != strlen(b)-1)
| ^~~~~~
main.cpp:28:21: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:31:17: error: 'strstr' was not declared in this scope
31 | p = strstr(a2,k);
| ^~~~~~
main.cpp:31:17: note: 'strstr' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:34:13: error: 'strcpy' was not declared in this scope
34 | strcpy(aux,p+2);
| ^~~~~~
main.cpp:34:13: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:41:12: error: 'strcmp' was not declared in this scope
41 | if(strcmp(s,b)!=0)
| ^~~~~~
main.cpp:41:12: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp: In function 'int main()':
main.cpp:71:9: error: 'strcpy' was not declared in this scope
71 | strcpy(a2,a);
| ^~~~~~
main.cpp:71:9: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:72:24: error: 'strlen' was not declared in this scope
72 | for(int i =0;i<strlen(a)-1;i++)
| ^~~~~~
main.cpp:72:24: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp: In function 'int cauta(char*, char)':
main.cpp:10:13: warning: control reaches end of non-void function [-Wreturn-type]
10 | 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 !
