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_38780629_31038.cpp:1:1: error: 'unordered_set' does not name a type
    1 | unordered_set<int> sq;
      | ^~~~~~~~~~~~~
0_0_38780629_31038.cpp: In function 'void gamejoye()':
0_0_38780629_31038.cpp:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> a >> b;
      |         ^~~
0_0_38780629_31038.cpp:5:20: error: 'abs' was not declared in this scope
    5 |         int diff = abs(a - b);
      |                    ^~~
0_0_38780629_31038.cpp:6:12: error: 'sq' was not declared in this scope
    6 |         if(sq.count(diff)) {
      |            ^~
0_0_38780629_31038.cpp:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << "1\n";
      |                 ^~~~
0_0_38780629_31038.cpp:11:20: error: 'sq' was not declared in this scope
   11 |                 if(sq.count(i * i - diff) || sq.count(diff - i * i)) {
      |                    ^~
0_0_38780629_31038.cpp:12:25: error: 'cout' was not declared in this scope
   12 |                         cout << "2\n";
      |                         ^~~~
0_0_38780629_31038.cpp:16:9: error: 'cout' was not declared in this scope
   16 |         cout << "3\n";
      |         ^~~~
0_0_38780629_31038.cpp: In function 'int main()':
0_0_38780629_31038.cpp:20:9: error: 'ios' has not been declared
   20 |         ios::sync_with_stdio(0);
      |         ^~~
0_0_38780629_31038.cpp:21:9: error: 'cin' was not declared in this scope
   21 |         cin.tie(0);
      |         ^~~
0_0_38780629_31038.cpp:22:9: error: 'cout' was not declared in this scope
   22 |         cout.tie(0);
      |         ^~~~
0_0_38780629_31038.cpp:23:43: error: 'sq' was not declared in this scope
   23 |         for(int i = 1; i * i <= 1e9; i++) sq.insert(i * i);
      |                                           ^~


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-05-07 09:35:35, Gzip enabled