Borderou de evaluare (job #1666254)
Utilizator | Data | 27 martie 2016 20:32:36 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:8:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’
register int *eax asm("eax");
^
user.c:8:23: warning: implicit declaration of function ‘asm’ [-Wimplicit-function-declaration]
user.c:9:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’
register int *ebx asm("ebx");
^
user.c:12:5: error: ‘eax’ undeclared (first use in this function)
eax=a,ebx=b;
^
user.c:12:5: note: each undeclared identifier is reported only once for each function it appears in
user.c:12:11: error: ‘ebx’ undeclared (first use in this function)
eax=a,ebx=b;
^
user.c:12:10: warning: left-hand operand of comma expression has no effect [-Wunused-value]
eax=a,ebx=b;
^
user.c:6:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("adunare.in","r",stdin);
^
user.c:7:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("adunare.out","w",stdout);
^
user.c:11:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&a,&b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !