0_0_20847327_25505.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include <iostream>
^
0_0_20847327_25505.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include <vector>
^
0_0_20847327_25505.cpp:3:6: error: expected nested-name-specifier before '&' token
using namespace std;
^
0_0_20847327_25505.cpp:3:21: error: expected identifier before '&' token
using namespace std;
^
0_0_20847327_25505.cpp:3:26: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_20847327_25505.cpp:3:27: error: 'std' does not name a type
using namespace std;
^
0_0_20847327_25505.cpp:3:36: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_20847327_25505.cpp:3:42: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_20847327_25505.cpp:4:7: error: 'nbsp' declared as reference but not initialized
const int SIZE = 105;
^
0_0_20847327_25505.cpp:4:16: error: conflicting declaration 'int& nbsp'
const int SIZE = 105;
^
0_0_20847327_25505.cpp:4:7: note: previous declaration as 'const int& nbsp'
const int SIZE = 105;
^
0_0_20847327_25505.cpp:4:21: error: 'SIZE' does not name a type
const int SIZE = 105;
^
0_0_20847327_25505.cpp:4:31: error: expected unqualified-id before '=' token
const int SIZE = 105;
^
0_0_20847327_25505.cpp:4:38: error: expected unqualified-id before numeric constant
const int SIZE = 105;
^
0_0_20847327_25505.cpp:4:47: error: expected constructor, destructor, or type conversion before ';' token
const int SIZE = 105;
^
0_0_20847327_25505.cpp:4:53: error: expected constructor, destructor, or type conversion before ';' token
const int SIZE = 105;
^
0_0_20847327_25505.cpp:5:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_20847327_25505.cpp:5:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_20847327_25505.cpp:6:5: error: conflicting declaration 'int& nbsp'
int roomNumber, trooperNumber;
^
0_0_20847327_25505.cpp:4:7: note: previous declaration as 'const int& nbsp'
const int SIZE = 105;
^
0_0_20847327_25505.cpp:6:10: error: 'roomNumber' does not name a type
int roomNumber, trooperNumber;
^
0_0_20847327_25505.cpp:6:27: error: 'trooperNumber' does not name a type
int roomNumber, trooperNumber;
^
0_0_20847327_25505.cpp:6:46: error: expected constructor, destructor, or type conversion before ';' token
int roomNumber, trooperNumber;
^
0_0_20847327_25505.cpp:6:52: error: expected constructor, destructor, or type conversion before ';' token
int roomNumber, trooperNumber;
^
0_0_20847327_25505.cpp:7:5: error: conflicting declaration 'int& nbsp'
int cost[SIZE], brain[SIZE];
^
0_0_20847327_25505.cpp:4:7: note: previous declaration as 'const int& nbsp'
const int SIZE = 105;
^
0_0_20847327_25505.cpp:7:10: error: 'cost' does not name a type
int cost[SIZE], brain[SIZE];
^
0_0_20847327_25505.cpp:7:27: error: 'brain' does not name a type
int cost[SIZE], brain[SIZE];
^
0_0_20847327_25505.cpp:7:44: error: expected constructor, destructor, or type conversion before ';' token
int cost[SIZE], brain[SIZE];
^
0_0_20847327_25505.cpp:7:50: error: expected constructor, destructor, or type conversion before ';' token
int cost[SIZE], brain[SIZE];
^
0_0_20847327_25505.cpp:8:5: error: conflicting declaration 'int& nbsp'
int dp[SIZE][SIZE]; /*dp[u][p]表示用 P 个士兵占领以 u 为根节点的子树所能获得的概率最大值*/
^
0_0_20847327_25505.cpp:4:7: note: previous declaration as 'const int& nbsp'
const int SIZE = 105;
^
0_0_20847327_25505.cpp:8:10: error: 'dp' does not name a type
int dp[SIZE][SIZE]; /*dp[u][p]表示用 P 个士兵占领以 u 为根节点的子树所能获得的概率最大值*/
^
0_0_20847327_25505.cpp:8:30: error: expected constructor, destructor, or type conversion before ';' token
int dp[SIZE][SIZE]; /*dp[u][p]表示用 P 个士兵占领以 u 为根节点的子树所能获得的概率最大值*/
^
0_0_20847327_25505.cpp:8:36: error: expected constructor, destructor, or type conversion before ';' token
int dp[SIZE][SIZE]; /*dp[u][p]表示用 P 个士兵占领以 u 为根节点的子树所能获得的概率最大值*/
^
0_0_20847327_25505.cpp:8:42: error: expected constructor, destructor, or type conversion before ';' token
int dp[SIZE][SIZE]; /*dp[u][p]表示用 P 个士兵占领以 u 为根节点的子树所能获得的概率最大值*/
^
0_0_20847327_25505.cpp:8:138: error: expected constructor, destructor, or type conversion before ';' token
int dp[SIZE][SIZE]; /*dp[u][p]表示用 P 个士兵占领以 u 为根节点的子树所能获得的概率最大值*/
^
0_0_20847327_25505.cpp:8:144: error: expected constructor, destructor, or type conversion before ';' token
int dp[SIZE][SIZE]; /*dp[u][p]表示用 P 个士兵占领以 u 为根节点的子树所能获得的概率最大值*/
^
0_0_20847327_25505.cpp:9:1: error: 'vector' does not name a type
vector<int> adj[SIZE]; /*图*/
^
0_0_20847327_25505.cpp:9:18: error: 'adj' does not name a type
vector<int> adj[SIZE]; /*图*/
^
0_0_20847327_25505.cpp:9:33: error: expected constructor, destructor, or type conversion before ';' token
vector<int> adj[SIZE]; /*图*/
^
0_0_20847327_25505.cpp:9:39: error: expected constructor, destructor, or type conversion before ';' token
vector<int> adj[SIZE]; /*图*/
^
0_0_20847327_25505.cpp:9:45: error: expected constructor, destructor, or type conversion before ';' token
vector<int> adj[SIZE]; /*图*/
^
0_0_20847327_25505.cpp:9:57: error: expected constructor, destructor, or type conversion before ';' token
vector<int> adj[SIZE]; /*图*/
^
0_0_20847327_25505.cpp:9:63: error: expected constructor, destructor, or type conversion before ';' token
vector<int> adj[SIZE]; /*图*/
^
0_0_20847327_25505.cpp:10:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_20847327_25505.cpp:10:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_20847327_25505.cpp:11:6: error: cannot declare reference to 'void'
void dfsPulsDp(int p, int pre)
^
0_0_20847327_25505.cpp:11:6: error: variable or field 'nbsp' declared void
0_0_20847327_25505.cpp:11:29: error: expected ')' before ';' token
void dfsPulsDp(int p, int pre)
^
0_0_20847327_25505.cpp:11:29: error: expected constructor, destructor, or type conversion before ';' token
0_0_20847327_25505.cpp:11:30: error: 'p' does not name a type
void dfsPulsDp(int p, int pre)
^
0_0_20847327_25505.cpp:11:42: error: conflicting declaration 'int& nbsp'
void dfsPulsDp(int p, int pre)
^
0_0_20847327_25505.cpp:4:7: note: previous declaration as 'const int& nbsp'
const int SIZE = 105;
^
0_0_20847327_
|