/ Vijos /

记录详情

Compile Error

foo.cpp:155:1: error: stray '\241' in program
 【number】
 ^
foo.cpp:155:1: error: stray '\276' in program
foo.cpp:155:1: error: stray '\241' in program
foo.cpp:155:1: error: stray '\277' in program
foo.cpp:194:1: error: stray '\241' in program
 【aneye】
 ^
foo.cpp:194:1: error: stray '\276' in program
foo.cpp:194:1: error: stray '\241' in program
foo.cpp:194:1: error: stray '\277' in program
foo.cpp:201:0: warning: "mpint" redefined
 #define mpint pair<int,int>
 ^
foo.cpp:13:0: note: this is the location of the previous definition
 #define mpint make_pair<int>
 ^
foo.cpp:154:1: error: expected unqualified-id before '==' token
 ================================================================================================
 ^
foo.cpp:162:33: error: redefinition of 'const int maxn'
 const int modd=1000*1000*1000+7,maxn=50+5;
                                 ^
foo.cpp:26:11: note: 'const int maxn' previously defined here
 const int maxn=2000+10,oo=1<<28;
           ^
foo.cpp:163:5: error: redefinition of 'int N'
 int N;
     ^
foo.cpp:28:5: note: 'int N' previously declared here
 int N,S,T,m;
     ^
foo.cpp: In function 'int main()':
foo.cpp:168:5: error: redefinition of 'int main()'
 int main()
     ^
foo.cpp:49:5: note: 'int main()' previously defined here
 int main()
     ^
foo.cpp: At global scope:
foo.cpp:193:1: error: expected unqualified-id before '==' token
 ==================================================================================================
 ^
foo.cpp: In function 'int multi(std::pair<int, int>, std::pair<int, int>, std::pair<int, int>)':
foo.cpp:205:37: error: ambiguating new declaration of 'int multi(std::pair<int, int>, std::pair<int, int>, std::pair<int, int>)'
 int multi(mpint op,mpint sp,mpint ep)
                                     ^
foo.cpp:20:11: note: old declaration 'long long int multi(std::pair<int, int>, std::pair<int, int>, std::pair<int, int>)'
 long long multi(pint op,pint sp,pint ep)
           ^
foo.cpp: At global scope:
foo.cpp:232:11: error: ambiguating new declaration of 'void work()'
 void work();
           ^
foo.cpp:182:5: note: old declaration 'int work()'
 int work()
     ^
foo.cpp:234:11: error: redefinition of 'const int maxn'
 const int maxn=1000+10;
           ^
foo.cpp:26:11: note: 'const int maxn' previously defined here
 const int maxn=2000+10,oo=1<<28;
           ^
foo.cpp:235:5: error: redefinition of 'int N'
 int N,M;
     ^
foo.cpp:28:5: note: 'int N' previously declared here
 int N,S,T,m;
     ^
foo.cpp:237:14: error: conflicting declaration 'bool boo [2010]'
 bool boo[maxn];
              ^
foo.cpp:31:6: note: previous declaration as 'bool boo [8040]'
 bool boo[maxn*4];
      ^
foo.cpp:238:13: error: conflicting declaration 'std::pair<int, int> R [2010]'
 mpint R[maxn];
             ^
foo.cpp:27:6: note: previous declaration as 'std::pair<int, int> R [8040]'
 pint R[maxn*4];
      ^
foo.cpp: In function 'int main()':
foo.cpp:240:5: error: redefinition of 'int main()'
 int main()
     ^
foo.cpp:49:5: note: 'int main()' previously defined here
 int main()
     ^
foo.cpp: In function 'void init()':
foo.cpp:253:6: error: redefinition of 'void init()'
 void init()
      ^
foo.cpp:65:6: note: 'void init()' previously defined here
 void init()
      ^
foo.cpp: In function 'void work()':
foo.cpp:259:11: error: ambiguating new declaration of 'void work()'
 void work()
           ^
foo.cpp:182:5: note: old declaration 'int work()'
 int work()
     ^

信息

递交者
类型
递交
题目
P1804 智能车比赛
语言
C++
递交时间
2015-06-09 17:49:39
评测时间
2015-06-09 17:49:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes