Pagini recente » Borderou de evaluare (job #275382) | Borderou de evaluare (job #2439923) | Borderou de evaluare (job #192873) | Borderou de evaluare (job #753825) | Borderou de evaluare (job #1678094)
Borderou de evaluare (job #1678094)
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 |
1 | 0ms | 288kb | OK | 10 |
2 | 0ms | 284kb | OK | 10 |
3 | 8ms | 284kb | OK | 10 |
4 | Depăşit | 284kb | Time limit exceeded. | 0 |
5 | 152ms | 548kb | OK | 10 |
6 | Depăşit | 1644kb | Time limit exceeded. | 0 |
7 | Depăşit | 2324kb | Time limit exceeded. | 0 |
8 | Depăşit | 3820kb | Time limit exceeded. | 0 |
9 | Depăşit | 4100kb | Time limit exceeded. | 0 |
10 | Depăşit | 4368kb | Time limit exceeded. | 0 |
Punctaj total | 40 |