Borderou de evaluare (job #1734368)
Utilizator | Data | 27 iulie 2016 10:54:11 | |
---|---|---|---|
Problema | Permutari | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:7:60: error: duplicate member ‘len’
typedef struct mare{short len;short a[MAREARRAYSIZE];short len;}mare;
^
user.c:15:1: warning: return type defaults to ‘int’ [enabled by default]
printmare(mare m){int i;if(!m.len)return 0;printf("%d",m.a[m.len-1]);for(i=m.len-1;i--;)printf(MAREPRINTFORMAT,m.a[i]);}
^
user.c:21:1: warning: return type defaults to ‘int’ [enabled by default]
main(){freopen("perm.in","r",stdin);freopen("perm.out","w",stdout);
^
user.c: In function ‘printmare’:
user.c:15:1: warning: control reaches end of non-void function [-Wreturn-type]
printmare(mare m){int i;if(!m.len)return 0;printf("%d",m.a[m.len-1]);for(i=m.len-1;i--;)printf(MAREPRINTFORMAT,m.a[i]);}
^
user.c: In function ‘main’:
user.c:21:15: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
main(){freopen("perm.in","r",stdin);freopen("perm.out","w",stdout);
^
user.c:21:44: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
main(){freopen("perm.in","r",stdin);freopen("perm.out","w",stdout);
^
user.c:22:6: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&k);mare tempm;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !