Problem prime
User Aum
Submission Time 2024-03-06 08:38:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int32_t main()’:
prime.cpp:10:34: error: request for member ‘size’ in ‘primelist’, which is of non-class type ‘long long int [a]’
10 | for (int i = 0; i < primelist.size(); i++) {
| ^~~~
prime.cpp:11:11: error: invalid operands of types ‘long long int’ and ‘long long int [a]’ to binary ‘operator%’
11 | if (a % primelist != 0 ){
| ~ ^ ~~~~~~~~~
| | |
| | long long int [a]
| long long int
prime.cpp:12:16: error: request for member ‘append’ in ‘primelist’, which is of non-class type ‘long long int [a]’
12 | primelist.append(a)
| ^~~~~~