Pagini recente » Borderou de evaluare (job #1372441) | Borderou de evaluare (job #2175423) | Borderou de evaluare (job #2593650) | Borderou de evaluare (job #1766319) | Borderou de evaluare (job #1594832)
Borderou de evaluare (job #1594832)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:19: warning: format ‘%c’ expects argument of type ‘char*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%c",&ch);
^
user.cpp:12:28: warning: unused variable ‘length’ [-Wunused-variable]
int i,inc,sf,n,ch,temp,k,z,length,indi,indf;
^
user.cpp:9:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("teatru.in","r",stdin);
^
user.cpp:10:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("teatru.out","w",stdout);
^
user.cpp:13:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&z,&k);
^
user.cpp:14:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&ch);
^
user.cpp:16:20: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(s,NMax,stdin);
^
user.cpp:50:1: warning: ‘indi’ may be used uninitialized in this function [-Wmaybe-uninitialized]
for(i=indi;i<=indf;++i) printf("%c",s[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 268kb | OK | 10 |
2 | 0ms | 272kb | OK | 10 |
3 | 0ms | 324kb | OK | 10 |
4 | 0ms | 320kb | OK | 10 |
5 | 0ms | 324kb | OK | 10 |
6 | 0ms | 292kb | OK | 10 |
7 | 4ms | 304kb | OK | 10 |
8 | 0ms | 300kb | OK | 10 |
9 | 4ms | 320kb | OK | 10 |
10 | 4ms | 320kb | OK | 10 |
Punctaj total | 100 |