/ Vijos /

记录详情

Compile Error

/in/foo.cc:11:10: error: '::main' must return 'int'
 int main()
          ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:13:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
     scanf("%d", &n);
                   ^
/in/foo.cc:14:49: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
     for(int i = 1; i <= n; i++)scanf("%d", q + i);
                                                 ^
/in/foo.cc:28:23: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
     printf("%d\n", ans);
                       ^

信息

递交者
类型
递交
题目
P1312 能量项链
语言
C++
递交时间
2024-01-19 14:10:54
评测时间
2024-01-19 14:10:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes