Borderou de evaluare (job #1678094)

Utilizator hegedusPaul Hegedus hegedus Data 6 aprilie 2016 23:37:58
Problema Arbvalmax Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=] for(x=1;x<=n;x++) scanf("%d",&v[x].val); ^ user.cpp:28:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] printf("%d\n",v[y].val); ^ user.cpp:13: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:14: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:15:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&teste); ^ user.cpp:16:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(x=2;x<=n;x++) scanf("%d",&tata[x]); ^ user.cpp:17:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(x=1;x<=n;x++) scanf("%d",&v[x].val); ^ user.cpp:22:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&i,&j); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms288kbOK10
20ms284kbOK10
38ms284kbOK10
4Depăşit284kbTime limit exceeded.0
5152ms548kbOK10
6Depăşit1644kbTime limit exceeded.0
7Depăşit2324kbTime limit exceeded.0
8Depăşit3820kbTime limit exceeded.0
9Depăşit4100kbTime limit exceeded.0
10Depăşit4368kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?