Borderou de evaluare (job #1237894)
Utilizator | Data | 5 octombrie 2014 01:02:18 | |
---|---|---|---|
Problema | Algoritmul lui Euclid extins | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:4:35: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
inline int gcd( int A, int B, int &X, int &Y )
^
user.c: In function ‘main’:
user.c:36:9: warning: implicit declaration of function ‘gcd’ [-Wimplicit-function-declaration]
D = gcd( A, B, X, Y );
^
user.c:23:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("euclid3.in", "rt", stdin);
^
user.c:24:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("euclid3.out", "wt", stdout);
^
user.c:27:15: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
for (scanf("%d", &T), assert( T <= 100 ); T; T--)
^
user.c:30:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &A, &B, &C);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !