Borderou de evaluare (job #1347332)
Utilizator | Data | 18 februarie 2015 21:50:10 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:20:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &n)
^
user.cpp:22:5: error: expected ‘;’ before ‘for’
for(i=1; i<=n; i++){
^
user.cpp:22:15: warning: statement has no effect [-Wunused-value]
for(i=1; i<=n; i++){
^
user.cpp:22:23: error: expected ‘;’ before ‘)’ token
for(i=1; i<=n; i++){
^
user.cpp:17: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);
^
user.cpp:18:40: 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:22:12: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=n; i++){
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !