| Problem | nprime |
|---|---|
| User | WANCH5789W |
| Submission Time | 2026-07-11 16:57:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
nprime.cpp: In function ‘int main()’:
nprime.cpp:13:21: error: expected ‘;’ before ‘)’ token
13 | for (int i = 0; i++){//how do i make a continuously running loop?
| ^
| ;
nprime.cpp:14:41: error: lvalue required as left operand of assignment
14 | if (a % 2 = 0 || a % 3 = 0 || a % 5 = 0){
| ^
nprime.cpp:16:7: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::vector<long long int>’)
16 | cin >> arr;
| ~~~ ^~ ~~~
| | |
| | std::vector<long long int>
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/iostream:40,
from nprime.cpp:2:
/usr/include/c++/9/istream:120:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std