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_38937267_16650.cpp: In function 'int main()':
0_0_38937267_16650.cpp:8:18: error: expression list treated as compound expression in initializer [-fpermissive]
    8 |     scanf("%d",&T);
      |                  ^
0_0_38937267_16650.cpp:8:18: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    8 |     scanf("%d",&T);
      |                  ^
      |                  |
      |                  int*
0_0_38937267_16650.cpp:11:14: error: 'scanf' cannot be used as a function
   11 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
0_0_38937267_16650.cpp:12:9: error: 'll' was not declared in this scope
   12 |         ll num = 0;
      |         ^~
0_0_38937267_16650.cpp:14:22: error: 'scanf' cannot be used as a function
   14 |                 scanf("%d",&q[i]);
      |                 ~~~~~^~~~~~~~~~~~
0_0_38937267_16650.cpp:15:17: error: 'num' was not declared in this scope; did you mean 'enum'?
   15 |                 num += q[i] - 1;
      |                 ^~~
      |                 enum
0_0_38937267_16650.cpp:19:25: error: 'num' was not declared in this scope; did you mean 'enum'?
   19 |                 else if(num % (n-1) == 0) printf("%d\n",num/(n-1));
      |                         ^~~
      |                         enum


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-12-02 03:39:42, Gzip enabled