Borderou de evaluare (job #1290377)
Utilizator | Data | 11 decembrie 2014 10:12:55 | |
---|---|---|---|
Problema | Noname2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:15:24: error: ‘sort’ was not declared in this scope
sort ( v+1 , v+n+1 ) ;
^
user.cpp:20:9: warning: unused variable ‘cost’ [-Wunused-variable]
int cost=med*(mij-1)-sp[mij-1]+sp[n]-sp[mij]-med*(n-mij);
^
user.cpp:10: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:11: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:12: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:14: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 !