Borderou de evaluare (job #1290474)
Utilizator | Data | 11 decembrie 2014 12:04:48 | |
---|---|---|---|
Problema | Noname2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void caut(int)’:
user.cpp:11:15: error: ‘mij’ was not declared in this scope
int med=v[mij];
^
user.cpp:19:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
return true ;
^
user.cpp:21:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
return false;
^
user.cpp:12:9: warning: unused variable ‘st’ [-Wunused-variable]
int st , dr ;
^
user.cpp: In function ‘void cautbinar(int)’:
user.cpp:29:25: error: ‘cauta’ was not declared in this scope
if(cauta(mij))
^
user.cpp:37:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
return sol;
^
user.cpp: In function ‘int main()’:
user.cpp:46:24: error: ‘sort’ was not declared in this scope
sort ( v+1 , v+n+1 ) ;
^
user.cpp:51:9: warning: unused variable ‘cost’ [-Wunused-variable]
int cost=med*(mij-1)-sp[mij-1]+sp[n]-sp[mij]-med*(n-mij);
^
user.cpp:41:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("noname.in" , "r" , stdin ) ;
^
user.cpp:42:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("noname.out" , "w" , stdout ) ;
^
user.cpp:43:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d" , &n , &k ) ;
^
user.cpp:45:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d" , &v[i] ) ;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !