Pagini recente » Borderou de evaluare (job #1775277) | Borderou de evaluare (job #3270216) | Borderou de evaluare (job #2550609) | Borderou de evaluare (job #3289311) | Borderou de evaluare (job #2030990)
Borderou de evaluare (job #2030990)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:27:52: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
int main(){int x,i;freopen ("petsoft.in","r",stdin);freopen ("petsoft.out","w",stdout);scanf("%d\n",&N);for(i=2;i<=N;++i){scanf("%d\n",&x);G[x].push_back(i);}DFS(1);cout << dp[1][0];return 0;}
^
user.cpp:27:87: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
int main(){int x,i;freopen ("petsoft.in","r",stdin);freopen ("petsoft.out","w",stdout);scanf("%d\n",&N);for(i=2;i<=N;++i){scanf("%d\n",&x);G[x].push_back(i);}DFS(1);cout << dp[1][0];return 0;}
^
user.cpp:27:104: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int main(){int x,i;freopen ("petsoft.in","r",stdin);freopen ("petsoft.out","w",stdout);scanf("%d\n",&N);for(i=2;i<=N;++i){scanf("%d\n",&x);G[x].push_back(i);}DFS(1);cout << dp[1][0];return 0;}
^
user.cpp:27:139: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int main(){int x,i;freopen ("petsoft.in","r",stdin);freopen ("petsoft.out","w",stdout);scanf("%d\n",&N);for(i=2;i<=N;++i){scanf("%d\n",&x);G[x].push_back(i);}DFS(1);cout << dp[1][0];return 0;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 488kb | Cool! | 10 |
2 | 0ms | 828kb | Cool! | 10 |
3 | 4ms | 1436kb | Cool! | 10 |
4 | 8ms | 2408kb | Cool! | 10 |
5 | 8ms | 2316kb | Cool! | 10 |
6 | 8ms | 2180kb | Cool! | 10 |
7 | 12ms | 3208kb | Cool! | 10 |
8 | 8ms | 2428kb | Cool! | 10 |
9 | 12ms | 3124kb | Cool! | 10 |
10 | 12ms | 2732kb | Cool! | 10 |
Punctaj total | 100 |