Borderou de evaluare (job #3346947)
| Utilizator | Data | 15 martie 2026 13:55:55 | |
|---|---|---|---|
| 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:4:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
3 | #include <strings.h>
+++ |+#include <cstring>
4 | FILE *f=fopen("cheatgpt.in","r");
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:30:21: error: 'strlen' was not declared in this scope
30 | while(nr != strlen(b)-1)
| ^~~~~~
main.cpp:30:21: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:33:17: error: 'strstr' was not declared in this scope
33 | p = strstr(a2,k);
| ^~~~~~
main.cpp:33:17: note: 'strstr' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:36:13: error: 'strcpy' was not declared in this scope
36 | strcpy(aux,p+2);
| ^~~~~~
main.cpp:36:13: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:46:12: error: 'strcmp' was not declared in this scope
46 | if(strcmp(s,b)!=0)
| ^~~~~~
main.cpp:46:12: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp: In function 'int main()':
main.cpp:84:9: error: 'strcpy' was not declared in this scope
84 | strcpy(a2,a);
| ^~~~~~
main.cpp:84:9: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:85:24: error: 'strlen' was not declared in this scope
85 | for(int i =0;i<strlen(a)-1;i++)
| ^~~~~~
main.cpp:85: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 !
