| Problem | prime | 
|---|---|
| User | joshua2152 | 
| Submission Time | 2023-07-26 08:24:39 | 
| Score | 0 | 
| Max Time | N/A | 
| Max Memory | N/A | 
Owl Get a Life
 prime.cpp: In function ‘int main()’:
prime.cpp:7:2: error: ‘sx’ was not declared in this scope; did you mean ‘x’?
    7 |  sx = sqrt(x);
      |  ^~
      |  x
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:5