Borderou de evaluare (job #1254505)
Utilizator | Data | 2 noiembrie 2014 20:31:04 | |
---|---|---|---|
Problema | Permutari II | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long int cmmmc(long int, long int)’:
user.cpp:8:24: error: ‘cmmdc’ was not declared in this scope
return cmmdc(b, a%b);
^
user.cpp: In function ‘long int cmmmc(long int, long int)’:
user.cpp:10:6: error: redefinition of ‘long int cmmmc(long int, long int)’
long cmmmc(long a,long b)
^
user.cpp:4:6: error: ‘long int cmmmc(long int, long int)’ previously defined here
long cmmmc(long a, long b)
^
user.cpp:12:27: error: ‘cmmdc’ was not declared in this scope
return (a*b)/cmmdc(a,b);
^
user.cpp: In function ‘int main()’:
user.cpp:19:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
fscanf(f1,"%ld",&n);
^
user.cpp:23:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
fscanf(f1,"%ld",&v[0][i]);
^
user.cpp:54:28: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
fprintf(f2,"%ld",cm);
^
user.cpp:56:28: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
else fprintf(f2,"%ld",k);
^
user.cpp: In function ‘long int cmmmc(long int, long int)’:
user.cpp:9:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘long int cmmmc(long int, long int)’:
user.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:19:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%ld",&n);
^
user.cpp:23:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%ld",&v[0][i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !