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_39107420_4950.cpp: In function 'int direction(int, int, int)':
0_0_39107420_4950.cpp:4:17: error: 'ar' was not declared in this scope
    4 |         return (ar[j][0]-ar[i][0])*(ar[k][1]-ar[i][1])-(ar[k][0]-ar[i][0])*(ar[j][1]-ar[i][1]);
      |                 ^~
0_0_39107420_4950.cpp: In function 'int main()':
0_0_39107420_4950.cpp:7:27: error: 'n' was not declared in this scope
    7 |         while(scanf("%d",&n)){
      |                           ^
0_0_39107420_4950.cpp:9:21: error: 'i' was not declared in this scope
    9 |                 for(i=0;i<n;i++){
      |                     ^
0_0_39107420_4950.cpp:10:37: error: expected primary-expression before ')' token
   10 |                         scanf("%d",&)
      |                                     ^


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-11-26 08:29:25, Gzip enabled