Problem | nprime2 |
---|---|
User | akqxolotl |
Submission Time | 2024-04-02 12:29:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nprime2.cpp: In function ‘int main()’:
nprime2.cpp:8:10: error: request for member ‘begin’ in ‘a1’, which is of non-class type ‘int [24]’
8 | sort(a1.begin(),a1.end());
| ^~~~~
nprime2.cpp:8:21: error: request for member ‘end’ in ‘a1’, which is of non-class type ‘int [24]’
8 | sort(a1.begin(),a1.end());
| ^~~
nprime2.cpp:8:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
8 | sort(a1.begin(),a1.end());
| ^~~~
| qsort
nprime2.cpp:9:22: error: request for member ‘begin’ in ‘a1’, which is of non-class type ‘int [24]’
9 | if(binary_search(a1.begin(),a1.end(),n%147)==1){
| ^~~~~
nprime2.cpp:9:33: error: request for member ‘end’ in ‘a1’, which is of non-class type ‘int [24]’
9 | if(binary_search(a1.begin(),a1.end(),n%147)==1){
| ^~~
nprime2.cpp:9:5: error: ‘binary_search’ was no