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_24229955_7150.cpp:8:5: error: stray '\243' in program
     int S,N,M;   //三个杯子存在的可乐量      
     ^
0_0_24229955_7150.cpp:8:5: error: stray '\254' in program
0_0_24229955_7150.cpp:8:9: error: expected ';' at end of member declaration
     int S,N,M;   //三个杯子存在的可乐量      
         ^
0_0_24229955_7150.cpp:8:12: error: 'N' does not name a type
     int S,N,M;   //三个杯子存在的可乐量      
            ^
0_0_24229955_7150.cpp: In function 'void bfs()':
0_0_24229955_7150.cpp:19:26: error: too many initializers for 'node'
     q.push((node){s,0,0,0});
                          ^
0_0_24229955_7150.cpp:25:35: error: 'struct node' has no member named 'N'
         if ( (now.S == s/2 && now.N == s/2) || (now.N == s/2 && now.M == s/2) || (now.M == s/2 && now.S == s/2) )           //如果已经评分 把值赋予给res
                                   ^
0_0_24229955_7150.cpp:25:53: error: 'struct node' has no member named 'N'
         if ( (now.S == s/2 && now.N == s/2) || (now.N == s/2 && now.M == s/2) || (now.M == s/2 && now.S == s/2) )           //如果已经评分 把值赋予给res
                                                     ^
0_0_24229955_7150.cpp:25:69: error: 'struct node' has no member named 'M'
         if ( (now.S == s/2 && now.N == s/2) || (now.N == s/2 && now.M == s/2) || (now.M == s/2 && now.S == s/2) )           //如果已经评分 把值赋予给res
                                                                     ^
0_0_24229955_7150.cpp:25:87: error: 'struct node' has no member named 'M'
         if ( (now.S == s/2 && now.N == s/2) || (now.N == s/2 && now.M == s/2) || (now.M == s/2 && now.S == s/2) )           //如果已经评分 把值赋予给res
                                                                                       ^
0_0_24229955_7150.cpp:35:17: error: 'struct node' has no member named 'N'
         if (now.N < n)              //如果第二杯子没有满
                 ^
0_0_24229955_7150.cpp:37:34: error: 'struct node' has no member named 'N'
             if (now.S >= n - now.N && !vis[n][now.M])           //如果第一个杯子可以装满第二个杯子
                                  ^
0_0_24229955_7150.cpp:37:51: error: 'struct node' has no member named 'M'
             if (now.S >= n - now.N && !vis[n][now.M])           //如果第一个杯子可以装满第二个杯子
                                                   ^
0_0_24229955_7150.cpp:39:28: error: 'struct node' has no member named 'M'
                 vis[n][now.M] = 1;
                            ^
0_0_24229955_7150.cpp:40:47: error: 'struct node' has no member named 'N'
                 q.push((node){now.S - n + now.N, n , now.M , now.count+1});
                                               ^
0_0_24229955_7150.cpp:40:58: error: 'struct node' has no member named 'M'
                 q.push((node){now.S - n + now.N, n , now.M , now.count+1});
                                                          ^
0_0_24229955_7150.cpp:43:32: error: 'struct node' has no member named 'N'
             if ( now.S < n-now.N && !vis[now.N+now.S][now.M])       //如果第一个杯子中的量装不满第二个
                                ^
0_0_24229955_7150.cpp:43:46: error: 'struct node' has no member named 'N'
             if ( now.S < n-now.N && !vis[now.N+now.S][now.M])       //如果第一个杯子中的量装不满第二个
                                              ^
0_0_24229955_7150.cpp:43:59: error: 'struct node' has no member named 'M'
             if ( now.S < n-now.N && !vis[now.N+now.S][now.M])       //如果第一个杯子中的量装不满第二个
                                                           ^
0_0_24229955_7150.cpp:45:25: error: 'struct node' has no member named 'N'
                 vis[now.N+now.S][now.M] = 1;
                         ^
0_0_24229955_7150.cpp:45:38: error: 'struct node' has no member named 'M'
                 vis[now.N+now.S][now.M] = 1;
                                      ^
0_0_24229955_7150.cpp:46:37: error: 'struct node' has no member named 'N'
                 q.push((node){0,now.N + now.S,now.M , now.count+1});
                                     ^
0_0_24229955_7150.cpp:46:51: error: 'struct node' has no member named 'M'
                 q.push((node){0,now.N + now.S,now.M , now.count+1});
                                                   ^
0_0_24229955_7150.cpp:48:21: error: 'struct node' has no member named 'M'
             if (now.M >= n - now.N && !vis[n][now.M - n + now.N])       //第三个杯子中的量可以装满第二个杯子
                     ^
0_0_24229955_7150.cpp:48:34: error: 'struct node' has no member named 'N'
             if (now.M >= n - now.N && !vis[n][now.M - n + now.N])       //第三个杯子中的量可以装满第二个杯子
                                  ^
0_0_24229955_7150.cpp:48:51: error: 'struct node' has no member named 'M'
             if (now.M >= n - now.N && !vis[n][now.M - n + now.N])       //第三个杯子中的量可以装满第二个杯子
                                                   ^
0_0_24229955_7150.cpp:48:63: error: 'struct node' has no member named 'N'
             if (now.M >= n - now.N && !vis[n][now.M - n + now.N])       //第三个杯子中的量可以装满第二个杯子
                                                               ^
0_0_24229955_7150.cpp:50:28: error: 'struct node' has no member named 'M'
                 vis[n][now.M - n + now.N] = 1;
                            ^
0_0_24229955_7150.cpp:50:40: error: 'struct node' has no member named 'N'
                 vis[n][now.M - n + now.N] = 1;
                                        ^
0_0_24229955_7150.cpp:51:43: error: 'struct node' has no member named 'M'
                 q.push((node){now.S,n,now.M - n + now.N,now.count+1});
                                           ^
0_0_24229955_7150.cpp:51:55: error: 'struct node' has no member named 'N'
                 q.push((node){now.S,n,now.M - n + now.N,now.count+1});
                                                       ^
0_0_24229955_7150.cpp:51:68: error: too many initializers for 'node'
                 q.push((node){now.S,n,now.M - n + now.N,now.count+1});
                                                                    ^
0_0_24229955_7150.cpp:54:22: error: 'struct node' has no member named 'M'
             if ( now.M < n-now.N && !vis[now.N+now.M][0])           //第三个杯子中的量不可以装满第二个杯子
                      ^
0_0_24229955_7150.cpp:54:32: error: 'struct node' has no member named 'N'
             if ( now.M < n-now.N && !vis[now.N+now.M][0])           //第三个杯子中的量不可以装满第二个杯子
                                ^
0_0_24229955_7150.cpp:54:46: error: 'struct node' has no member named 'N'
             if ( now.M < n-now.N && !vis[now.N+now.M][0])           //第三个杯子中的量不可以装满第二个杯子
                                              ^
0_0_24229955_7150.cpp:54:52: error: 'struct node' has no member named 'M'
             if ( now.M < n-now.N && !vis[now.N+now.M][0])           //第三个杯子中的量不可以装满第二个杯子
                                                    ^
0_0_24229955_7150.cpp:56:25: error: 'struct node' has no member named 'N'
                 vis[now.N+now.M][0] = 1;
                         ^
0_0_24229955_7150.cpp:56:31: error: 'struct node' has no member named 'M'
                 vis[now.N+now.M][0] = 1;
                               ^
0_0_24229955_7150.cpp:57:44: error: 'struct node' has no member named 'N'
                 q.push((node){now.S ,  now.N + now.M , 0 ,now.count+1});
                                            ^
0_0_24229955_7150.cpp:57:52: error: 'struct node' has no member named 'M'
                 q.push((node){now.S ,  now.N + now.M , 0 ,now.count+1});
                                                    ^
0_0_24229955_7150.cpp:60:17: error: 'struct node' has no member named 'M'
         if (now.M < m)                                              //后面的情况类似
                 ^
0_0_24229955_7150.cpp:62:34: error: 'struct node' has no member named 'M'
             if (now.S >= m - now.M && !vis[now.N][m])
                                  ^
0_0_24229955_7150.cpp:62:48: error: 'struct node' has no member named 'N'
             if (now.S >= m - now.M && !vis[now.N][m])
                                                ^
0_0_24229955_7150.cpp:64:25: error: 'struct node' has no member named 'N'
                 vis[now.N][m] = 1;
                         ^
0_0_24229955_7150.cpp:65:47: error: 'struct node' has no member named 'M'
                 q.push((node){now.S - m + now.M,  now.N  , m ,now.count+1});
                                               ^
0_0_24229955_7150.cpp:65:55: error: 'struct node' has no member named 'N'
                 q.push((node){now.S - m + now.M,  now.N  , m ,now.count+1});
                                                       ^
0_0_24229955_7150.cpp:67:32: error: 'struct node' has no member named 'M'
             if ( now.S < m-now.M && !vis[now.N][now.M + now.S])
                                ^
0_0_24229955_7150.cpp:67:46: error: 'struct node' has no member named 'N'
             if ( now.S < m-now.M && !vis[now.N][now.M + now.S])
                                              ^
0_0_24229955_7150.cpp:67:53: error: 'struct node' has no member named 'M'
             if ( now.S < m-now.M && !vis[now.N][now.M + now.S])
                                                     ^
0_0_24229955_7150.cpp:69:25: error: 'struct node' has no member named 'N'
                 vis[now.N][now.M + now.S] = 1;
                         ^
0_0_24229955_7150.cpp:69:32: error: 'struct node' has no member named 'M'
                 vis[now.N][now.M + now.S] = 1;
                                ^
0_0_24229955_7150.cpp:70:39: error: 'struct node' has no member n


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 03:49:02, Gzip enabled