Pagini recente » Cod sursa (job #1756610) | Borderou de evaluare (job #2827525) | Borderou de evaluare (job #1699190) | Borderou de evaluare (job #836577) | Borderou de evaluare (job #1760020)
Borderou de evaluare (job #1760020)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:13:19: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
a[strlen(a)-1]=NULL;
^
user.cpp:19:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1;i<=strlen(a)-2 && cods==1;i++)
^
user.cpp:23:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=i;j<=strlen(a)-1 && cod==1;j=j+2)
^
user.cpp:43:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(max>strlen(a)/2 && i>strlen(a)/2+1)
^
user.cpp:43:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(max>strlen(a)/2 && i>strlen(a)/2+1)
^
user.cpp:57:29: warning: NULL used in arithmetic [-Wpointer-arith]
for(p=a+1;*p!=NULL;p++)
^
user.cpp:6:15: warning: unused variable ‘pic’ [-Wunused-variable]
int n,max,pic,pi,i,j,cod,l,face,bac,nr=0,hi,cods=1;
^
user.cpp:6:32: warning: unused variable ‘face’ [-Wunused-variable]
int n,max,pic,pi,i,j,cod,l,face,bac,nr=0,hi,cods=1;
^
user.cpp:6:37: warning: unused variable ‘bac’ [-Wunused-variable]
int n,max,pic,pi,i,j,cod,l,face,bac,nr=0,hi,cods=1;
^
user.cpp:6:46: warning: unused variable ‘hi’ [-Wunused-variable]
int n,max,pic,pi,i,j,cod,l,face,bac,nr=0,hi,cods=1;
^
user.cpp:11:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%c",&n,&c);
^
user.cpp:12:21: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(a,10001,f);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 260kb | OK | 5 |
| 2 | 0ms | 264kb | OK | 5 |
| 3 | 0ms | 264kb | OK | 5 |
| 4 | 8ms | 268kb | Incorect | 0 |
| 5 | 24ms | 268kb | Incorect | 0 |
| 6 | 0ms | 264kb | Incorect | 0 |
| 7 | 0ms | 268kb | Incorect | 0 |
| 8 | 0ms | 264kb | Incorect | 0 |
| 9 | 8ms | 272kb | Incorect | 0 |
| 10 | 8ms | 268kb | Incorect | 0 |
| 11 | 4ms | 272kb | Incorect | 0 |
| 12 | 8ms | 272kb | Incorect | 0 |
| 13 | 8ms | 276kb | Incorect | 0 |
| 14 | 8ms | 276kb | Incorect | 0 |
| 15 | 8ms | 272kb | Incorect | 0 |
| 16 | 8ms | 276kb | Incorect | 0 |
| 17 | 8ms | 272kb | Incorect | 0 |
| 18 | 8ms | 276kb | Incorect | 0 |
| 19 | 8ms | 268kb | Incorect | 0 |
| 20 | 0ms | 264kb | OK | 5 |
| Punctaj total | 20 |