/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:12:9: error: 'd' cannot be used as a function
 c=(d(d+1))/2;
         ^
foo.cpp:17:4: error: unable to find numeric literal operator 'operator"" a'
 e=(2a-d(d+1))/2(d+1);
    ^
foo.cpp:17:12: error: 'd' cannot be used as a function
 e=(2a-d(d+1))/2(d+1);
            ^
foo.cpp:17:20: error: expression cannot be used as a function
 e=(2a-d(d+1))/2(d+1);
                    ^
foo.cpp:18:8: error: 'd' cannot be used as a function
 f=d(d+1)(2*d+1)/6;
        ^
foo.cpp:6:17: warning: unused variable 'b' [-Wunused-variable]
 long long int a,b,c,e,f,g;
                 ^

信息

递交者
类型
递交
题目
P1974 金币
语言
C++
递交时间
2015-12-07 17:02:55
评测时间
2015-12-07 17:18:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes