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_39745441_16781.cpp: In function 'void dfs(int, int, int)':
0_0_39745441_16781.cpp:21:30: error: 'abs' was not declared in this scope
   21 |     if(((t - sum) & 1)  != ((abs(x-  ex) + abs(y  -ey)) & 1)) return;
      |                              ^~~
0_0_39745441_16781.cpp:23:18: error: 'abs' was not declared in this scope
   23 |     if(t - sum < abs(x - ex) + abs(y - ey)) return;
      |                  ^~~
0_0_39745441_16781.cpp: In function 'int main()':
0_0_39745441_16781.cpp:40:10: error: 'std::ios' has not been declared
   40 |     std::ios::sync_with_stdio(false);
      |          ^~~
0_0_39745441_16781.cpp:41:10: error: 'cin' is not a member of 'std'
   41 |     std::cin.tie(nullptr);
      |          ^~~
0_0_39745441_16781.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | //n是行,m是列,t是时间限制,sx,sy是起点,ex,ey是终点
0_0_39745441_16781.cpp:43:11: error: 'cin' was not declared in this scope
   43 |     while(cin >> n >> m >> t)
      |           ^~~
0_0_39745441_16781.cpp:66:22: error: 'abs' was not declared in this scope
   66 |         int mindis = abs(sx - ex) + abs(sy - ey);
      |                      ^~~
0_0_39745441_16781.cpp:69:13: error: 'cout' was not declared in this scope
   69 |             cout << "NO" << endl;
      |             ^~~~
0_0_39745441_16781.cpp:69:29: error: 'endl' was not declared in this scope
   69 |             cout << "NO" << endl;
      |                             ^~~~
0_0_39745441_16781.cpp:74:18: error: 'cout' was not declared in this scope
   74 |         if(flag) cout << "YES" << endl;
      |                  ^~~~
0_0_39745441_16781.cpp:74:35: error: 'endl' was not declared in this scope
   74 |         if(flag) cout << "YES" << endl;
      |                                   ^~~~
0_0_39745441_16781.cpp:75:14: error: 'cout' was not declared in this scope
   75 |         else cout << "NO" << endl;
      |              ^~~~
0_0_39745441_16781.cpp:75:30: error: 'endl' was not declared in this scope
   75 |         else cout << "NO" << endl;
      |                              ^~~~


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-28 20:08:19, Gzip enabled