Pagini recente » Borderou de evaluare (job #2833874) | Borderou de evaluare (job #1483334) | Borderou de evaluare (job #2842883) | Borderou de evaluare (job #1483570) | Borderou de evaluare (job #3346955)
Borderou de evaluare (job #3346955)
Raport evaluator
Compilare:
main.cpp: In function 'int cauta(char*, char)':
main.cpp:11:19: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(int i =0;i<strlen(a);i++)
| ~^~~~~~~~~~
main.cpp: In function 'void sterge(char*, char)':
main.cpp:20:21: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
20 | for(int i =poz;i<strlen(a)-1;i++ )
| ~^~~~~~~~~~~~
main.cpp: In function 'void rec(char*, char*, char*, char*, int&, int&)':
main.cpp:30:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
30 | while(nr != strlen(b)-1)
| ~~~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:85:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
85 | for(int i =0;i<strlen(a)-1;i++)
| ~^~~~~~~~~~~~
main.cpp: In function 'int cauta(char*, char)':
main.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type]
15 | }
| ^
main.cpp: In function 'int main()':
main.cpp:83:18: warning: 'char* fgets(char*, int, FILE*)' writing 1001 bytes into a region of size 600 overflows the destination [-Wstringop-overflow=]
83 | fgets(b,1001,f);
| ~~~~~^~~~~~~~~~
main.cpp:76:22: note: destination object 'b' of size 600
76 | char a[1001],b[600];
| ^
In file included from main.cpp:1:
/usr/include/stdio.h:592:14: note: in a call to function 'char* fgets(char*, int, FILE*)' declared with attribute 'access (write_only, 1, 2)'
592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
| ^~~~~
main.cpp:83:18: warning: 'char* fgets(char*, int, FILE*)' writing 1001 bytes into a region of size 600 overflows the destination [-Wstringop-overflow=]
83 | fgets(b,1001,f);
| ~~~~~^~~~~~~~~~
main.cpp:76:22: note: destination object 'b' of size 600
76 | char a[1001],b[600];
| ^
/usr/include/stdio.h:592:14: note: in a call to function 'char* fgets(char*, int, FILE*)' declared with attribute 'access (write_only, 1, 2)'
592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
| ^~~~~
main.cpp:83:18: warning: 'char* fgets(char*, int, FILE*)' writing 1001 bytes into a region of size 600 overflows the destination [-Wstringop-overflow=]
83 | fgets(b,1001,f);
| ~~~~~^~~~~~~~~~
main.cpp:76:22: note: destination object 'b' of size 600
76 | char a[1001],b[600];
| ^
/usr/include/stdio.h:592:14: note: in a call to function 'char* fgets(char*, int, FILE*)' declared with attribute 'access (write_only, 1, 2)'
592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
| ^~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 7ms | 16547kb | Memory limit exceeded | 0 |
| Punctaj total | 0 |