Pagini recente » Borderou de evaluare (job #1126525) | Borderou de evaluare (job #2180836) | Borderou de evaluare (job #436410) | Borderou de evaluare (job #1179364) | Borderou de evaluare (job #2985887)
Borderou de evaluare (job #2985887)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:10:34: warning: comparison with string literal results in unspecified behavior [-Waddress]
10 | while(in.getline(s,2005) && s!="*" && in.getline(t,2005))
| ~^~~~~
main.cpp:13:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
13 | while(i<strlen(s))
| ~^~~~~~~~~~
main.cpp:20:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
20 | while(j<strlen(t))
| ~^~~~~~~~~~
main.cpp:28:21: warning: iteration 256 invokes undefined behavior [-Waggressive-loop-optimizations]
28 | if(fr1[i]*2==fr2[i] && fr1[i]!=0)
| ~~~~~^
main.cpp:27:22: note: within this loop
27 | for(int i=0;i<=256;++i)
| ~^~~~~
main.cpp:32:26: warning: iteration 256 invokes undefined behavior [-Waggressive-loop-optimizations]
32 | fr1[i]=fr2[i]=0;
| ~~~~~~^~
main.cpp:31:22: note: within this loop
31 | for(int i=0;i<=256;++i)
| ~^~~~~
main.cpp:32:26: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [1024, 1027] is out of the bounds [0, 1024] of object 'fr2' with type 'int [256]' [-Warray-bounds]
32 | fr1[i]=fr2[i]=0;
| ~~~~~~^~
main.cpp:7:14: note: 'fr2' declared here
7 | int fr1[256],fr2[256],cont;
| ^~~
main.cpp:32:19: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [1024, 1027] is out of the bounds [0, 1024] of object 'fr1' with type 'int [256]' [-Warray-bounds]
32 | fr1[i]=fr2[i]=0;
| ~~~~~~^~~~~~~~~
main.cpp:7:5: note: 'fr1' declared here
7 | int fr1[256],fr2[256],cont;
| ^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 184kb | OK | 100 |
Punctaj total | 100 |