/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include<algorithm>
 ^
foo.cpp:4:1: error: 'string' does not name a type
 string mul(string a,string b)
 ^
foo.cpp: In function 'int sub(int, int*, int, int)':
foo.cpp:24:7: error: invalid types 'int[int]' for array subscript
 if(a[i]>b[i]) break;
       ^
foo.cpp:25:12: error: invalid types 'int[int]' for array subscript
 else if(a[i]<b[i]) return -1;
            ^
foo.cpp:29:8: error: invalid types 'int[int]' for array subscript
     a[i]-=b[i];  
        ^
foo.cpp:30:11: error: invalid types 'int[int]' for array subscript
     if(a[i]<0) a[i]+=10,a[i+1]--;  
           ^
foo.cpp:30:19: error: invalid types 'int[int]' for array subscript
     if(a[i]<0) a[i]+=10,a[i+1]--;  
                   ^
foo.cpp:30:30: error: invalid types 'int[int]' for array subscript
     if(a[i]<0) a[i]+=10,a[i+1]--;  
                              ^
foo.cpp:33:11: error: invalid types 'int[int]' for array subscript
     if(a[i]) return i+1;
           ^
foo.cpp: At global scope:
foo.cpp:36:1: error: 'string' does not name a type
 string div(string n1,string n2,int nn)
 ^

信息

递交者
类型
递交
题目
P1047 最小公倍数
语言
C++
递交时间
2015-03-16 13:19:58
评测时间
2015-03-16 13:19:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes