Borderou de evaluare (job #1927861)
Utilizator | Data | 15 martie 2017 17:10:09 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:22:18: error: found ‘:’ in nested-name-specifier, expected ‘::’
ArboreDeIntervale:ArboreDeIntervale()
^
user.cpp: In member function ‘void ArboreDeIntervale::update(int, int, int)’:
user.cpp:45:19: error: ‘IF’ was not declared in this scope
IF( x < middle)
^
user.cpp:46:9: error: expected ‘;’ before ‘update’
update(2*pos,left,middle);
^
user.cpp:47:5: error: ‘else’ without a previous ‘if’
else
^
user.cpp: In member function ‘void ArboreDeIntervale::query(int, int, int)’:
user.cpp:73:9: error: expected primary-expression before ‘<’ token
if( < middle)
^
user.cpp: In function ‘void read()’:
user.cpp:90:18: warning: unused variable ‘left’ [-Wunused-variable]
int task,left,right;
^
user.cpp:90:23: warning: unused variable ‘right’ [-Wunused-variable]
int task,left,right;
^
user.cpp:81:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arbint.in","r",stdin);
^
user.cpp:82:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arbint.out","w",stdout);
^
user.cpp:83:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
user.cpp:86:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&noduri[i]);
^
user.cpp:91:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&task,&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !