Borderou de evaluare (job #1347274)
Utilizator | Data | 18 februarie 2015 21:23:28 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:17:28: warning: missing terminating " character [enabled by default]
freopen("euclid2.out", "rw, stdout);
^
user.cpp:17:5: error: missing terminating " character
freopen("euclid2.out", "rw, stdout);
^
user.cpp: In function ‘int gcd(int, int)’:
user.cpp:9:26: error: expected ‘)’ before ‘mod’
else return gcd(b, a mod b);
^
user.cpp: In function ‘int main()’:
user.cpp:19:13: error: expected ‘)’ before ‘;’ token
cin >> n;
^
user.cpp:22:13: warning: unused variable ‘d’ [-Wunused-variable]
int d;
^
user.cpp:16:38: 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);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !