Problem | prime |
---|---|
User | joshua2152 |
Submission Time | 2023-07-26 08:25:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:9:42: error: redeclaration of ‘long long int t’
9 | long long i = 2; long long t; long long t; int ans = 0;
| ^
prime.cpp:9:29: note: ‘long long int t’ previously declared here
9 | long long i = 2; long long t; long long t; int ans = 0;
| ^
prime.cpp:18:21: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘const char [10]’)
18 | if (ans == 1) cout >> "Not Prime";
| ~~~~ ^~ ~~~~~~~~~~~
| | |
| | const char [10]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/string:56,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41