Borderou de evaluare (job #2092046)
Utilizator | Vlad Ghetina VladGhetina | Data | 20 decembrie 2017 21:03:11 |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Euler_Tour(int)’:
user.cpp:32:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( i = 0 ; i < G[nod].size() ; i ++ ) {
^
user.cpp: In function ‘void RMQ()’:
user.cpp:43:21: error: ‘level’ was not declared in this scope
rmq[0][i] = level[i];
^
user.cpp: In function ‘void Read()’:
user.cpp:20:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ( "%d%d" , &n , &m );
^
user.cpp:23:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ( "%d" , &x ) , G[x].pb(i);
^
user.cpp: In function ‘void Solve()’:
user.cpp:60:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ( "%d%d" , &a , &b );
^
user.cpp: In function ‘int main()’:
user.cpp:72:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(IN , "r" , stdin);
^
user.cpp:73:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(OUT , "w" , stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !