Borderou de evaluare (job #1486618)
Utilizator | Data | 15 septembrie 2015 11:37:04 | |
---|---|---|---|
Problema | Swap | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘M’:
user.c:9:5: error: too many arguments to function ‘M’
M(p,m,l),M(m+1,q,l);
^
user.c:5:6: note: declared here
void M(int p,int q) {
^
user.c:9:5: error: too many arguments to function ‘M’
M(p,m,l),M(m+1,q,l);
^
user.c:5:6: note: declared here
void M(int p,int q) {
^
user.c: In function ‘main’:
user.c:19:5: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
freopen("swap.in","r",stdin),freopen("swap.out","w",stdout),fgets(s,50001,stdin),fgets(t,50001,stdin),n=strlen(s);
^
user.c:19:109: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
freopen("swap.in","r",stdin),freopen("swap.out","w",stdout),fgets(s,50001,stdin),fgets(t,50001,stdin),n=strlen(s);
^
user.c:29:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
M(0,n-1),printf("%d",l);
^
user.c:19:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("swap.in","r",stdin),freopen("swap.out","w",stdout),fgets(s,50001,stdin),fgets(t,50001,stdin),n=strlen(s);
^
user.c:19:41: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("swap.in","r",stdin),freopen("swap.out","w",stdout),fgets(s,50001,stdin),fgets(t,50001,stdin),n=strlen(s);
^
user.c:19:70: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
freopen("swap.in","r",stdin),freopen("swap.out","w",stdout),fgets(s,50001,stdin),fgets(t,50001,stdin),n=strlen(s);
^
user.c:19:91: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
freopen("swap.in","r",stdin),freopen("swap.out","w",stdout),fgets(s,50001,stdin),fgets(t,50001,stdin),n=strlen(s);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !