/in/foo.cc:5:105: error: extended character 。 is not valid in an identifier
5 | 优化一:经过Excel实验或理论分析,发现random()函数具有周期性,并且c-1为其周期,所以只要验证前min(2*c,n-1)项即可。
| ^
/in/foo.cc:9:40: error: extended character 。 is not valid in an identifier
9 | 优化二:经过Excel实验或理论分析,在n>c+1时,发现当x与a确定时,b最多只有一个符合要求。
| ^
/in/foo.cc:13:62: error: extended character 。 is not valid in an identifier
13 | 优化三:当i>c时,任意数字mod c mod i==该数字mod c,即不需mod i。
| ^
/in/foo.cc:14:12: error: extended character 。 is not valid in an identifier
14 | 提高10%~20%左右效率。
| ^
/in/foo.cc:1:8: error: expected constructor, destructor, or type conversion before '(' token
1 | 以下是O(c^3)的暴力做法(含几处优化),95%的测试点Accept(除了第四个变态的测试点)
| ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:36:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
36 | scanf("%d%d",&n,&c);
| ~^ ~~
| | |
| int* long int*
| %ld
/in/foo.cc:36:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
36 | scanf("%d%d",&n,&c);
| ~^ ~~
| | |
| int* long int*
| %ld
/in/foo.cc:37:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
37 | for (int i=1;i<n;i++) scanf("%d",&ans[i]);
| ~^ ~~~~~~~
| | |
| | long int*
| int*
| %ld
/in/foo.cc:48:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
48 | if (i>c&&f!=ans[i]||f%i!=ans[i]) //优化三
| ~~~^~~~~~~~~~~
/in/foo.cc:57:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
57 | printf("%d %d %d\n",x,a,b);
| ~^ ~
| | |
| int long int
| %ld
/in/foo.cc:57:37: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
57 | printf("%d %d %d\n",x,a,b);
| ~^ ~
| | |
| int long int
| %ld
/in/foo.cc:57:40: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
57 | printf("%d %d %d\n",x,a,b);
| ~^ ~
| | |
| int long int
| %ld