Borderou de evaluare (job #1718178)
Utilizator | Data | 16 iunie 2016 22:07:13 | |
---|---|---|---|
Problema | Joben | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool cmp(elem, elem)’:
user.cpp:10:1: error: expected ‘;’ before ‘}’ token
}
^
user.cpp: In function ‘int main()’:
user.cpp:21:14: error: ‘i’ was not declared in this scope
sort(sum[i]+1,sum[i]+n+1,cmp());
^
user.cpp:21:34: error: too few arguments to function ‘bool cmp(elem, elem)’
sort(sum[i]+1,sum[i]+n+1,cmp());
^
user.cpp:8:6: note: declared here
bool cmp(elem x,elem y){
^
user.cpp:21:35: error: ‘sort’ was not declared in this scope
sort(sum[i]+1,sum[i]+n+1,cmp());
^
user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv9.in", "r", stdin);
^
user.cpp:14:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv9.out", "w", stdout);
^
user.cpp:15:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld", &n, &s);
^
user.cpp:17:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !