Borderou de evaluare (job #2409330)
Raport evaluator
Compilare:
main.cpp: In function 'void dfs(int, int)':
main.cpp:87:40: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
for(int i = 1; (int)cur.size()-1-(1<<i-1) >= 0 ; ++i) {
~^~
main.cpp:88:71: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
dp[i][node] = max(dp[i-1][node], dp[i-1][cur[(int)cur.size()-1-(1<<i-1)]]);
~^~
main.cpp: In function 'int main()':
main.cpp:164:7: warning: unused variable 'dif' [-Wunused-variable]
int dif = lvl[a] - lvl[b];
^~~
main.cpp:104:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("termite.in", "r", stdin);
^
main.cpp:105:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("termite.out", "w", stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 42ms | 19398kb | OK | 10 |
2 | 42ms | 19398kb | OK | 10 |
3 | 205ms | 25034kb | OK | 10 |
4 | 422ms | 33456kb | OK | 10 |
5 | 367ms | 36880kb | Memory limit exceeded | 0 |
6 | 395ms | 36880kb | Memory limit exceeded | 0 |
7 | 512ms | 36872kb | Memory limit exceeded | 0 |
8 | 511ms | 36872kb | Memory limit exceeded | 0 |
9 | 523ms | 36880kb | Memory limit exceeded | 0 |
10 | 535ms | 36880kb | Memory limit exceeded | 0 |
Punctaj total | 40 |