Borderou de evaluare (job #1292092)
Utilizator | Data | 13 decembrie 2014 17:12:49 | |
---|---|---|---|
Problema | Algoritmul lui Euclid extins | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:20: error: ‘abs’ was not declared in this scope
cmmdc = gcd(abs(a), abs(b));
^
user.cpp:18:20: note: suggested alternative:
In file included from user.cpp:2:0:
/usr/include/c++/4.8/cmath:99:5: note: ‘std::abs’
abs(_Tp __x)
^
user.cpp:14:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &t);
^
user.cpp:17:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d%d%d", &a, &b, &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !