foo.cc: In function 'int main()':
foo.cc:20:2: error: expected initializer before 'int'
20 | int N,i,num = 0;
| ^~~
foo.cc:21:9: error: 'N' was not declared in this scope
21 | cin >> N;
| ^
foo.cc:22:6: error: 'i' was not declared in this scope
22 | for(i = 2;i <= N;i++)
| ^
foo.cc:24:17: error: 'isPrine' was not declared in this scope; did you mean 'isPrime'?
24 | if (N%i==0 && isPrine(i)==1)
| ^~~~~~~
| isPrime
foo.cc:26:4: error: 'a' was not declared in this scope
26 | a[num]==i
| ^
foo.cc:26:6: error: 'num' was not declared in this scope; did you mean 'enum'?
26 | a[num]==i
| ^~~
| enum
foo.cc:30:10: error: 'num' was not declared in this scope; did you mean 'enum'?
30 | cout << num << endl;
| ^~~
| enum
foo.cc:31:6: error: 'i' was not declared in this scope
31 | for(i = 0;i<num;i++)
| ^
foo.cc:33:10: error: 'a' was not declared in this scope
33 | cout <<a[i]<<" ";
| ^
foo.cc:35:10: error: expected ';' before '}' token
35 | return 0
| ^
| ;
36 | }
| ~
[Hydro](https://hydro.ac)提供评测服务