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_30629790_21294.cpp:1:1: error: 'include' does not name a type
 include <bits/stdc++.h>
 ^
0_0_30629790_21294.cpp:6:1: error: 'vector' does not name a type
 vector<int>num1,num2;
 ^
0_0_30629790_21294.cpp: In function 'int solve(int, int, int, int, int, int)':
0_0_30629790_21294.cpp:16:5: error: 'cout' was not declared in this scope
     cout<<pos<<' '<<last<<endl;
     ^
0_0_30629790_21294.cpp:16:27: error: 'endl' was not declared in this scope
     cout<<pos<<' '<<last<<endl;
                           ^
0_0_30629790_21294.cpp:17:13: error: 'num1' was not declared in this scope
     if(pos==num1.size()){
             ^
0_0_30629790_21294.cpp:38:24: error: 'num1' was not declared in this scope
     int start=small1?0:num1[pos];
                        ^
0_0_30629790_21294.cpp:39:21: error: 'num2' was not declared in this scope
     int en=small2?9:num2[pos];
                     ^
0_0_30629790_21294.cpp:47:66: error: 'max' was not declared in this scope
         re=max(re,i+solve(pos+1,small1,small2|(start<en),i,0,cnt));
                                                                  ^
0_0_30629790_21294.cpp:50:66: error: 'max' was not declared in this scope
         re=max(re,i+solve(pos+1,small1,small2|(start<en),i,1,cnt));
                                                                  ^
0_0_30629790_21294.cpp:53:68: error: 'max' was not declared in this scope
         re=max(re,i+solve(pos+1,small1,small2|(start<en),i,0,cnt+1));
                                                                    ^
0_0_30629790_21294.cpp:56:66: error: 'max' was not declared in this scope
         re=max(re,i+solve(pos+1,small1,small2|(start<en),i,0,cnt));
                                                                  ^
0_0_30629790_21294.cpp:61:60: error: 'max' was not declared in this scope
             re=max(re,i+solve(pos+1,1,1|(start<en),i,0,cnt));
                                                            ^
0_0_30629790_21294.cpp:64:60: error: 'max' was not declared in this scope
             re=max(re,i+solve(pos+1,1,1|(start<en),i,1,cnt));
                                                            ^
0_0_30629790_21294.cpp:67:51: error: 'max' was not declared in this scope
             re=max(re,i+solve(pos+1,1,1,i,0,cnt+1));
                                                   ^
0_0_30629790_21294.cpp:70:49: error: 'max' was not declared in this scope
             re=max(re,i+solve(pos+1,1,1,i,0,cnt));
                                                 ^
0_0_30629790_21294.cpp:75:54: error: 'max' was not declared in this scope
             re=max(re,i+solve(pos+1,1,small2,i,0,cnt));
                                                      ^
0_0_30629790_21294.cpp:78:54: error: 'max' was not declared in this scope
             re=max(re,i+solve(pos+1,1,small2,i,1,cnt));
                                                      ^
0_0_30629790_21294.cpp:81:56: error: 'max' was not declared in this scope
             re=max(re,i+solve(pos+1,1,small2,i,0,cnt+1));
                                                        ^
0_0_30629790_21294.cpp:84:54: error: 'max' was not declared in this scope
             re=max(re,i+solve(pos+1,1,small2,i,0,cnt));
                                                      ^
0_0_30629790_21294.cpp: At global scope:
0_0_30629790_21294.cpp:91:9: error: 'string' was not declared in this scope
 int cal(string l,string r)
         ^
0_0_30629790_21294.cpp:91:18: error: 'string' was not declared in this scope
 int cal(string l,string r)
                  ^
0_0_30629790_21294.cpp:91:26: error: expression list treated as compound expression in initializer [-fpermissive]
 int cal(string l,string r)
                          ^
0_0_30629790_21294.cpp:92:1: error: expected ',' or ';' before '{' token
 {
 ^


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 07:51:39, Gzip enabled