Borderou de evaluare (job #2276056)
Utilizator | Data | 4 noiembrie 2018 00:21:04 | |
---|---|---|---|
Problema | Concert | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:1: error: expected initializer before 'DC'
DC v[VM + 5] ;
^~
main.cpp: In function 'int main()':
main.cpp:18:10: error: 'i' was not declared in this scope
for (i = 1 ; i <= n ; ++ i) {
^
main.cpp:19:34: error: 'v' was not declared in this scope
scanf("%d %d %d %d %d", &v[i].st, &v[i].dr, &v[i].pr, &v[i].da, &v[i].db) ;
^
main.cpp:21:5: error: 'sort' is not a member of 'std'
std::sort(v + 1, v + 1 + n, cmp) ;
^~~
main.cpp:21:15: error: 'v' was not declared in this scope
std::sort(v + 1, v + 1 + n, cmp) ;
^
main.cpp:21:33: error: 'cmp' was not declared in this scope
std::sort(v + 1, v + 1 + n, cmp) ;
^~~
main.cpp:22:10: error: 'i' was not declared in this scope
for (i = 1; i <= n ; ++ i) {
^
main.cpp:25:14: error: 'j' was not declared in this scope
for (j = 1 ; j <= i ; ++ j) {
^
main.cpp:32:22: error: 'max' is not a member of 'std'
int maxx(std::max(caz1, caz2)) ;
^~~
main.cpp:33:21: error: 'max' is not a member of 'std'
dp[i] = std::max(dp[i], maxx) ;
^~~
main.cpp: At global scope:
main.cpp:37:7: error: expected constructor, destructor, or type conversion before '(' token
printf("%d", dp[n]) ;
^
main.cpp:38:1: error: expected unqualified-id before 'return'
return 0;
^~~~~~
main.cpp:39:1: error: expected declaration before '}' token
}
^
main.cpp: In function 'int main()':
main.cpp:15:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("concert.in","r",stdin) ;
^
main.cpp:16:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("concert.out","w",stdout) ;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !