Compile Error
/in/foo.cc: In function 'void config()':
/in/foo.cc:36:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
36 | printf("%d\n",tot_test);
| ~^ ~~~~~~~~
| | |
| int long long int
| %lld
/in/foo.cc:39:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
39 | printf("input%d.txt|output%d.txt|1|%d|256000\n",i,i,(i>tot_test-r?score+1:score));
| ~^ ~
| | |
| int long long int
| %lld
/in/foo.cc:39:44: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
39 | printf("input%d.txt|output%d.txt|1|%d|256000\n",i,i,(i>tot_test-r?score+1:score));
| ~^ ~
| | |
| int long long int
| %lld
/in/foo.cc:39:53: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
39 | printf("input%d.txt|output%d.txt|1|%d|256000\n",i,i,(i>tot_test-r?score+1:score));
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
/in/foo.cc: In function 'int main()':
/in/foo.cc:52:14: error: expected ';' before 'return'
52 | run()
| ^
| ;
53 | return 0;
| ~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1002 前缀和
- 语言
- C++
- 递交时间
- 2026-08-10 13:32:50
- 评测时间
- 2026-08-10 13:32:50
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes