Borderou de evaluare (job #3258214)
Utilizator | Data | 21 noiembrie 2024 16:12:28 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'cmmdc':
main.c:15:13: error: 'a' redeclared as different kind of symbol
15 | int a,b,t,d;
| ^
main.c:3:15: note: previous definition of 'a' with type 'int'
3 | int cmmdc(int a,int b)
| ~~~~^
main.c:15:15: error: 'b' redeclared as different kind of symbol
15 | int a,b,t,d;
| ^
main.c:3:21: note: previous definition of 'b' with type 'int'
3 | int cmmdc(int a,int b)
| ~~~~^
main.c:22:13: error: redeclaration of 'd' with no linkage
22 | int d=a/2;
| ^
main.c:15:19: note: previous declaration of 'd' with type 'int'
15 | int a,b,t,d;
| ^
main.c: In function 'main':
main.c:39:5: error: expected declaration specifiers before 'r'
39 | r=fopen("euclid2.in", *r);
| ^
main.c:40:5: error: expected declaration specifiers before 'w'
40 | w=fopen("euclid2.out", *w);
| ^
main.c:42:5: error: expected declaration specifiers before 'while'
42 | while (t>=0)
| ^~~~~
main.c:49:1: error: expected declaration specifiers before '}' token
49 | }
| ^
main.c:41:9: error: declaration for parameter 't' but no such parameter
41 | int t;
| ^
main.c:38:13: error: declaration for parameter 'w' but no such parameter
38 | FILE*r,*w;
| ^
main.c:38:10: error: declaration for parameter 'r' but no such parameter
38 | FILE*r,*w;
| ^
main.c:51: error: expected '{' at end of input
main.c: In function 'cmmdc':
main.c:33:5: warning: control reaches end of non-void function [-Wreturn-type]
33 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !