foo.cc:4:1: error: extended character is not valid in an identifier
4 | int temp=*b;
| ^
foo.cc:4:3: error: extended character is not valid in an identifier
4 | int temp=*b;
| ^
foo.cc:5:1: error: extended character is not valid in an identifier
5 | *b=*a;
| ^
foo.cc:5:3: error: extended character is not valid in an identifier
5 | *b=*a;
| ^
foo.cc:6:1: error: extended character is not valid in an identifier
6 | *a=temp;
| ^
foo.cc:6:3: error: extended character is not valid in an identifier
6 | *a=temp;
| ^
foo.cc:10:1: error: extended character is not valid in an identifier
10 | int pivot=a[high];
| ^
foo.cc:10:3: error: extended character is not valid in an identifier
10 | int pivot=a[high];
| ^
foo.cc:11:1: error: extended character is not valid in an identifier
11 | int i=low-1;
| ^
foo.cc:11:3: error: extended character is not valid in an identifier
11 | int i=low-1;
| ^
foo.cc:12:1: error: extended character is not valid in an identifier
12 | for(int j=low;j<=high-1;j++)
| ^
foo.cc:12:3: error: extended character is not valid in an identifier
12 | for(int j=low;j<=high-1;j++)
| ^
foo.cc:13:1: error: extended character is not valid in an identifier
13 | {
| ^
foo.cc:13:3: error: extended character is not valid in an identifier
13 | {
| ^
foo.cc:14:1: error: extended character is not valid in an identifier
14 | if(a[j]<=pivot)
| ^
foo.cc:14:3: error: extended character is not valid in an identifier
14 | if(a[j]<=pivot)
| ^
foo.cc:14:5: error: extended character is not valid in an identifier
14 | if(a[j]<=pivot)
| ^
foo.cc:14:7: error: extended character is not valid in an identifier
14 | if(a[j]<=pivot)
| ^
foo.cc:15:1: error: extended character is not valid in an identifier
15 | {
| ^
foo.cc:15:3: error: extended character is not valid in an identifier
15 | {
| ^
foo.cc:15:5: error: extended character is not valid in an identifier
15 | {
| ^
foo.cc:15:7: error: extended character is not valid in an identifier
15 | {
| ^
foo.cc:16:1: error: extended character is not valid in an identifier
16 | i++;
| ^
foo.cc:16:3: error: extended character is not valid in an identifier
16 | i++;
| ^
foo.cc:16:5: error: extended character is not valid in an identifier
16 | i++;
| ^
foo.cc:16:7: error: extended character is not valid in an identifier
16 | i++;
| ^
foo.cc:16:9: error: extended character is not valid in an identifier
16 | i++;
| ^
foo.cc:16:11: error: extended character is not valid in an identifier
16 | i++;
| ^
foo.cc:17:1: error: extended character is not valid in an identifier
17 | Swap(&a[j],&a[i]);
| ^
foo.cc:17:3: error: extended character is not valid in an identifier
17 | Swap(&a[j],&a[i]);
| ^
foo.cc:17:5: error: extended character is not valid in an identifier
17 | Swap(&a[j],&a[i]);
| ^
foo.cc:17:7: error: extended character is not valid in an identifier
17 | Swap(&a[j],&a[i]);
| ^
foo.cc:17:9: error: extended character is not valid in an identifier
17 | Swap(&a[j],&a[i]);
| ^
foo.cc:17:11: error: extended character is not valid in an identifier
17 | Swap(&a[j],&a[i]);
| ^
foo.cc:18:1: error: extended character is not valid in an identifier
18 | }
| ^
foo.cc:18:3: error: extended character is not valid in an identifier
18 | }
| ^
foo.cc:18:5: error: extended character is not valid in an identifier
18 | }
| ^
foo.cc:18:7: error: extended character is not valid in an identifier
18 | }
| ^
foo.cc:19:1: error: extended character is not valid in an identifier
19 | }
| ^
foo.cc:19:3: error: extended character is not valid in an identifier
19 | }
| ^
foo.cc:19:5: error: extended character is not valid in an identifier
19 | }
| ^
foo.cc:20:1: error: extended character is not valid in an identifier
20 | Swap(&a[i+1],&a[high]);
| ^
foo.cc:20:3: error: extended character is not valid in an identifier
20 | Swap(&a[i+1],&a[high]);
| ^
foo.cc:21:1: error: extended character is not valid in an identifier
21 | return (i+1);
| ^
foo.cc:21:3: error: extended character is not valid in an identifier
21 | return (i+1);
| ^
foo.cc:25:1: error: extended character is not valid in an identifier
25 | if(low<high)
| ^
foo.cc:25:3: error: extended character is not valid in an identifier
25 | if(low<high)
| ^
foo.cc:26:1: error: extended character is not valid in an identifier
26 | {
| ^
foo.cc:26:3: error: extended character is not valid in an identifier
26 | {
| ^
foo.cc:26:5: error: extended character is not valid in an identifier
26 | {
| ^
foo.cc:27:1: error: extended character is not valid in an identifier
27 | int p=Area(a,low,high);
| ^
foo.cc:27:3: error: extended character is not valid in an identifier
27 | int p=Area(a,low,high);
| ^
foo.cc:27:5: error: extended character is not valid in an identifier
27 | int p=Area(a,low,high);
| ^
foo.cc:27:7: error: extended character is not valid in an identifier
27 | int p=Area(a,low,high);
| ^
foo.cc:28:1: error: extended character is not valid in an identifier
28 | QuickSort(a,low,p-1);
| ^
foo.cc:28:3: error: extended character is not valid in an identifier
28 | QuickSort(a,low,p-1);
| ^
foo.cc:28:5: error: extended character is not valid in an identifier
28 | QuickSort(a,low,p-1);
| ^
foo.cc:28:7: error: extended character is not valid in an identifier
28 | QuickSort(a,low,p-1);
| ^
foo.cc:29:1: error: extended character is not valid in an identifier
29 | QuickSort(a,p+1,high);
| ^
foo.cc:29:3: error: extended character is not valid in an identifier
29 | QuickSort(a,p+1,high);
| ^
foo.cc:29:5: error: extended character is not valid in an identifier
29 | QuickSort(a,p+1,high);
| ^
foo.cc:29:7: error: extended character is not valid in an identifier
29 | QuickSort(a,p+1,high);
| ^
foo.cc:30:1: error: extended character is not valid in an identifier
30 | }
| ^
foo.cc:30:3: error: extended character is not valid in an identifier
30 | }
| ^
foo.cc:31:1: error: extended character is not valid in an identifier
31 | else
| ^
foo.cc:31:3: error: extended character is not valid in an identifier
31 | else
| ^
foo.cc:32:1: error: extended character is not valid in an identifier
32 | return;
| ^
foo.cc:32:3: error: extended character is not valid in an identifier
32 | return;
| ^
foo.cc:36:1: error: extended character is not valid in an identifier
36 | int x=a;
| ^
foo.cc:36:3: error: extended character is not valid in an identifier
36 | int x=a;
| ^
foo.cc:37:1: error: extended character is not valid in an identifier
37 | if(a>x)
| ^
foo.cc:37:3: error: extended character is not valid in an identifier
37 | if(a>x)
| ^
foo.cc:38:1: error: extended character is not valid in an identifier
38 | return x+=1;
| ^
foo.cc:38:3: error: extended character is not valid in an identifier
38 | return x+=1;
| ^
foo.cc:38:5: error: extended character is not valid in an identifier
38 | return x+=1;
| ^
foo.cc:38:7: error: extended character is not valid in an identifier
38 | return x+=1;
| ^
foo.cc:39:1: error: extended character is not valid in an identifier
39 | else
| ^
foo.cc:39:3: error: extended character is not valid in an identifier
39 | else
| ^
foo.cc:40:1: error: extended character is not valid in an identifier
40 | return x;
| ^
foo.cc:40:3: error: extended character is not valid in an identifier
40 | return x;
| ^
foo.cc:40:5: error: extended character is not valid in an identifier
40 | return x;
| ^
foo.cc:40:7: error: extended character is not valid in an identifier
40 | return x;
| ^
foo.cc:44:1: error: extended character is not valid in an identifier
44 | int n;int r;
| ^
foo.cc:44:3: error: extended character is not valid in an identifier
44 | int n;int r;
| ^
foo.cc:45:1: error: extended character is not valid in an identifier
45 | scanf("%d%d",&n,&r);
| ^
foo.cc:45:3: error: extended character is not valid in an identifier
45 | scanf("%d%d",&n,&r);
| ^
foo.cc:46:1: error: extended character is not valid in an identifier
46 | int a[n];
| ^
foo.cc:46:3: error: extended character is not valid in an identifier
46 | int a[n];
| ^
foo.cc:47:1: error: extended character is not valid in an identifier
47 | for(int i=0;i<n;i++)
| ^
foo.cc:47:3: error: extended character is not valid in an identifier
47 | for(int i=0;i<n;i++)
| ^
foo.cc:48:1: error: extended character is not valid in an identifier
48 | {
| ^
foo.cc:48:3: error: extended character is not valid in an identifier
48 | {
| ^
foo.cc:49:1: error: extended character is not valid in an identifier
49 | scanf("%d",&a[i]);
| ^
foo.cc:49:3: error: extended character is not valid in an identifier
49 | scanf("%d",&a[i]);
| ^
foo.cc:49:5: error: extended character is not valid in an identifier
49 | scanf("%d",&a[i]);
| ^
foo.cc:49:7: error: extended character is not valid in an identifier
49 | scanf("%d",&a[i]);
| ^
foo.cc:50:1: error: extended character is not valid in an identifier
50 | }
| ^
foo.cc:50:3: error: extended character is not valid in an identifier
50 | }
| ^
foo.cc:51:1: error: extended character is not valid in an identifier
51 | QuickSort(a,0,n-1);
| ^
foo.cc:51:3: error: extended character is not valid in an identifier
51 | QuickSort(a,0,n-1);
| ^
foo.cc:51:5: error: extended character is not valid in an identifier
51 | QuickSort(a,0,n-1);
| ^
foo.cc:52:1: error: extended character is not valid in an identifier
52 | for(int i=0;i<n;i++)
| ^
foo.cc:52:3: error: extended character is not valid in an identifier
52 | for(int i=0;i<n;i++)
| ^
foo.cc:53:1: error: extended character is not valid in an identifier
53 | {
| ^
foo.cc:53:3: error: extended character is not valid in an identifier
53 | {
| ^
foo.cc:53:5: error: extended character is not valid in an identifier
53 | {
| ^
foo.cc:54:1: error: extended character is not valid in an identifier
54 | double y=(double)r*3/4+(double)a[i]/4;
| ^
foo.cc:54:3: error: extended character is not valid in an identifier
54 | double y=(double)r*3/4+(double)a[i]/4;
| ^
foo.cc:54:5: error: extended character is not valid in an identifier
54 | double y=(double)r*3/4+(double)a[i]/4;
| ^
foo.cc:54:7: error: extended character is not valid in an identifier
54 | double y=(double)r*3/4+(double)a[i]/4;
| ^
foo.cc:55:1: error: extended character is not valid in an identifier
55 | int z=GsFu(y);
| ^
foo.cc:55:3: error: extended character is not valid in an identifier
55 | int z=GsFu(y);
| ^
foo.cc:55:5: error: extended character is not valid in an identifier
55 | int z=GsFu(y);
| ^
foo.cc:55:7: error: extended character is not valid in an identifier
55 | int z=GsFu(y);
| ^
foo.cc:56:1: error: extended character is not valid in an identifier
56 | if(z<r)
| ^
foo.cc:56:3: error: extended character is not valid in an identifier
56 | if(z<r)
| ^
foo.cc:56:5: error: extended character is not valid in an identifier
56 | if(z<r)
| ^
foo.cc:56:7: error: extended character is not valid in an identifier
56 | if(z<r)
| ^
foo.cc:56:9: error: extended character is not valid in an identifier
56 | if(z<r)
| ^
foo.cc:57:1: error: extended character is not valid in an identifier
57 | continue;
| ^
foo.cc:57:3: error: extended character is not valid in an identifier
57 | continue;
| ^
foo.cc:57:5: error: extended character is not valid in an identifier
57 | continue;
| ^
foo.cc:57:7: error: extended character is not valid in an identifier
57 | continue;
| ^
foo.cc:57:9: error: extended character is not valid in an identifier
57 | continue;
| ^
foo.cc:57:11: error: extended character is not valid in an identifier
57 | continue;
| ^
foo.cc:58:1: error: extended character is not valid in an identifier
58 | else
| ^
foo.cc:58:3: error: extended character is not valid in an identifier
58 | else
| ^
foo.cc:58:5: error: extended character is not valid in an identifier
58 | else
| ^
foo.cc:58:7: error: extended character is not valid in an identifier
58 | else
| ^
foo.cc:58:9: error: extended character is not valid in an identifier
58 | else
| ^
foo.cc:58:11: error: extended character is not valid in an identifier
58 | else
| ^
foo.cc:59:1: error: extended character is not valid in an identifier
59 | r=z;
| ^
foo.cc:59:3: error: extended character is not valid in an identifier
59 | r=z;
| ^
foo.cc:59:5: error: extended character is not valid in an identifier
59 | r=z;
| ^
foo.cc:59:7: error: extended character is not valid in an identifier
59 | r=z;
| ^
foo.cc:59:9: error: extended character is not valid in an identifier
59 | r=z;
| ^
foo.cc:59:11: error: extended character is not valid in an identifier
59 | r=z;
| ^
foo.cc:59:13: error: extended character is not valid in an identifier
59 | r=z;
| ^
foo.cc:60:1: error: extended character is not valid in an identifier
60 | }
| ^
foo.cc:60:3: error: extended character is not valid in an identifier
60 | }
| ^
foo.cc:61:1: error: extended character is not valid in an identifier
61 | printf("%d",r);
| ^
foo.cc:61:3: error: extended character is not valid in an identifier
61 | printf("%d",r);
| ^
foo.cc:62:1: error: extended character is not valid in an identifier
62 | return 0;
| ^
foo.cc:62:3: error: extended character is not valid in an identifier
62 | return 0;
| ^
foo.cc: In function 'void Swap(int*, int*)':
foo.cc:4:1: error: '\U000000a0' was not declared in this scope
4 | int temp=*b;
| ^
foo.cc:5:2: error: expected ';' before '\U000000a0'
5 | *b=*a;
| ^~
| ;
foo.cc:6:2: error: expected ';' before '\U000000a0'
6 | *a=temp;
| ^~
| ;
foo.cc: In function 'int Area(int*, int, int)':
foo.cc:10:1: error: '\U000000a0' was not declared in this scope
10 | int pivot=a[high];
| ^
foo.cc:11:2: error: expected ';' before '\U000000a0'
11 | int i=low-1;
| ^~
| ;
foo.cc:12:2: error: expected ';' before '\U000000a0'
12 | for(int j=low;j<=high-1;j++)
| ^~
| ;
foo.cc:12:19: error: 'j' was not declared in this scope
12 | for(int j=low;j<=high-1;j++)
| ^
foo.cc:20:2: error: expected ';' before '\U000000a0'
20 | Swap(&a[i+1],&a[high]);
| ^~
| ;
foo.cc:21:2: error: expected ';' before '\U000000a0'
21 | return (i+1);
| ^~
| ;
foo.cc:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
22 | }
| ^
foo.cc: In function 'void QuickSort(int*, int, int)':
foo.cc:25:1: error: '\U000000a0' was not declared in this scope
25 | if(low<high)
| ^
foo.cc:31:2: error: expected ';' before '\U000000a0'
31 | else
| ^~
| ;
foo.cc: In function 'int GsFu(double)':
foo.cc:36:1: error: '\U000000a0' was not declared in this scope
36 | int x=a;
| ^
foo.cc:37:2: error: expected ';' before '\U000000a0'
37 | if(a>x)
| ^~
| ;
foo.cc:39:2: error: expected ';' before '\U000000a0'
39 | else
| ^~
| ;
foo.cc:41:1: warning: no return statement in function returning non-void [-Wreturn-type]
41 | }
| ^
foo.cc: In function 'int main()':
foo.cc:44:1: error: '\U000000a0' was not declared in this scope
44 | int n;int r;
| ^
foo.cc:45:2: error: expected ';' before '\U000000a0'
45 | scanf("%d%d",&n,&r);
| ^~
| ;
foo.cc:46:2: error: expected ';' before '\U000000a0'
46 | int a[n];
| ^~
| ;
foo.cc:47:2: error: expected ';' before '\U000000a0'
47 | for(int i=0;i<n;i++)
| ^~
| ;
foo.cc:47:17: error: 'i' was not declared in this scope
47 | for(int i=0;i<n;i++)
| ^
foo.cc:47:19: error: 'n' was not declared in this scope
47 | for(int i=0;i<n;i++)
| ^
foo.cc:51:2: error: expected ';' before '\U000000a0'
51 | QuickSort(a,0,n-1);
| ^~
| ;
foo.cc:52:2: error: expected ';' before '\U000000a0'
52 | for(int i=0;i<n;i++)
| ^~
| ;
foo.cc:61:2: error: expected ';' before '\U000000a0'
61 | printf("%d",r);
| ^~
| ;
foo.cc:62:2: error: expected ';' before '\U000000a0'
62 | return 0;
| ^~
| ;
foo.cc:44:15: warning: unused variable 'r' [-Wunused-variable]
44 | int n;int r;
| ^
[Hydro](https://hydro.ac)提供评测服务