Problem | prime |
---|---|
User | Aum |
Submission Time | 2024-03-05 15:08:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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)
| ^~~~~~