Borderou de evaluare (job #1736591)
Utilizator | Data | 2 august 2016 10:32:17 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:16: error: expression list treated as compound expression in initializer [-fpermissive]
int euclid(a, b) {
^
user.cpp:5:16: warning: left operand of comma operator has no effect [-Wunused-value]
user.cpp:5:18: error: expected ‘,’ or ‘;’ before ‘{’ token
int euclid(a, b) {
^
user.cpp: In function ‘int main()’:
user.cpp:17:31: error: ‘euclid’ cannot be used as a function
printf("%d\n", euclid(a, b));
^
user.cpp:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("euclid2.in", "r", stdin);
^
user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("euclid2.out", "w", stdout);
^
user.cpp:14:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:16:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, 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 !