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_36361875_31524.cpp:1:1: error: 'include' does not name a type
 include <bits/stdc++.h>
 ^
0_0_36361875_31524.cpp: In function 'void solve()':
0_0_36361875_31524.cpp:18:15: error: 'cin' was not declared in this scope
     int n;    cin >> n;
               ^
0_0_36361875_31524.cpp:49:65: error: 'min' was not declared in this scope
                 FA[mask][0] = min(FA[mask^(1<<i)][0],FA[mask][0]);
                                                                 ^
0_0_36361875_31524.cpp:51:65: error: 'max' was not declared in this scope
                 FA[mask][1] = max(FA[mask^(1<<i)][1],FA[mask][1]);
                                                                 ^
0_0_36361875_31524.cpp:58:63: error: 'max' was not declared in this scope
         C[i] = max(max(FA[i][0] * FB[i][0],FA[i][1] * FB[i][1]),
                                                               ^
0_0_36361875_31524.cpp:59:53: error: 'max' was not declared in this scope
         max(FA[i][0] * FB[i][1],FA[i][1] * FB[i][0])); 
                                                     ^
0_0_36361875_31524.cpp:59:53: error: redeclaration of '<typeprefixerror>max'
0_0_36361875_31524.cpp:58:63: note: previous declaration '<typeprefixerror>max'
         C[i] = max(max(FA[i][0] * FB[i][0],FA[i][1] * FB[i][1]),
                                                               ^
0_0_36361875_31524.cpp:63:31: error: 'max' was not declared in this scope
         C[i] = max(C[i+1],C[i]);
                               ^
0_0_36361875_31524.cpp:69:5: error: 'cout' was not declared in this scope
     cout << (ans + MOD) % MOD << "\n"; 
     ^
0_0_36361875_31524.cpp: In function 'int main()':
0_0_36361875_31524.cpp:5:19: error: 'ios' has not been declared
 #define closeSync ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)
                   ^
0_0_36361875_31524.cpp:84:2: note: in expansion of macro 'closeSync'
 {closeSync;
  ^
0_0_36361875_31524.cpp:5:47: error: 'cin' was not declared in this scope
 #define closeSync ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)
                                               ^
0_0_36361875_31524.cpp:84:2: note: in expansion of macro 'closeSync'
 {closeSync;
  ^
0_0_36361875_31524.cpp:5:58: error: 'cout' was not declared in this scope
 #define closeSync ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)
                                                          ^
0_0_36361875_31524.cpp:84:2: note: in expansion of macro 'closeSync'
 {closeSync;
  ^


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 15:15:34, Gzip enabled