Pagini recente » Monitorul de evaluare | Borderou de evaluare (job #1871642) | Cod sursa (job #727307) | Borderou de evaluare (job #2607661) | Borderou de evaluare (job #1642738)
Borderou de evaluare (job #1642738)
Raport evaluator
Compilare:
user.cpp: In function ‘void dfs1(int)’:
user.cpp:23:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int it=0;it<V[nod].size();it++){
^
user.cpp: In function ‘int main()’:
user.cpp:43:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arbvalmax.in","r",stdin);
^
user.cpp:44:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arbvalmax.out","w",stdout);
^
user.cpp:46:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&q);
^
user.cpp:48:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&father[i]);
^
user.cpp:52:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i=1;i<=n;i++)scanf("%d ",&val[i]);
^
user.cpp:62:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n",&x,&y);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 4ms | 3824kb | OK | 10 |
| 2 | 4ms | 3816kb | OK | 10 |
| 3 | 12ms | 3824kb | OK | 10 |
| 4 | 12ms | 3816kb | OK | 10 |
| 5 | 40ms | 4436kb | OK | 10 |
| 6 | 168ms | 6988kb | OK | 10 |
| 7 | 248ms | 8596kb | OK | 10 |
| 8 | 436ms | 12084kb | OK | 10 |
| 9 | 468ms | 12724kb | OK | 10 |
| 10 | 508ms | 13352kb | OK | 10 |
| Punctaj total | 100 |