Borderou de evaluare (job #1277265)
Utilizator | Data | 27 noiembrie 2014 14:25:06 | |
---|---|---|---|
Problema | SequenceQuery | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘sQuery query(int, int, int, int, int)’:
user.cpp:42:10: warning: variable ‘s_st’ set but not used [-Wunused-but-set-variable]
sQuery s_st = query(2 * nod, p, m , a, b);
^
user.cpp:46:10: warning: variable ‘s_dr’ set but not used [-Wunused-but-set-variable]
sQuery s_dr = query(2 * nod + 1, m + 1, u, a, b);
^
user.cpp:50:16: error: conversion from ‘int’ to non-scalar type ‘sQuery’ requested
sQuery sol = 0;
^
user.cpp:51:11: error: ‘s_st’ was not declared in this scope
sol.S = s_st.S + s_dr.S;
^
user.cpp:51:20: error: ‘s_dr’ was not declared in this scope
sol.S = s_st.S + s_dr.S;
^
user.cpp:54:3: error: ‘sol_Ssecv’ was not declared in this scope
sol_Ssecv = max(s_st.Ssecv, max(s_dr.Ssecv, s_st.dr + s_dr.st));
^
user.cpp:59:11: error: ‘s_st’ was not declared in this scope
return s_st;
^
user.cpp:61:11: error: ‘s_dr’ was not declared in this scope
return s_dr;
^
user.cpp:62:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !