F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_31964064_16518.cpp:5:11: error: '::main' must return 'int'
 void main(){  int t, n; double max, arr[100]; scanf("%d", &t); while (t--) {  scanf("%d", &n);  for (int i = 0; i<n; i++)   scanf("%lf", &arr[i]);   max = arr[0];  for (int i = 1; i<n; i++)  if (max<arr[i])   max = arr[i];  printf("%.2lf\n", max); }   system("pause");}
           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-01 18:37:21, Gzip enabled