Problem prime
User Aum
Submission Time 2024-03-05 15:08:12
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 != ){
| ~ ^ ~~~~~~~~~
| | |
| | long long int [a]
| long long int
prime.cpp:11:26: error: expected primary-expression before ‘)’ token
11 | if (a % primelist != ){
| ^
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)
| ^~~~~~
prime.cpp:16:2: error: expected ‘}’ at end of input
16 | }
| ^
prime.cpp:5:17: note: to