0_0_39655524_27759.cpp: In function 'int isnotprime(int)':
0_0_39655524_27759.cpp:8:15: error: 'sqrt' was not declared in this scope
8 | int end = sqrt(n), i;
| ^~~~
0_0_39655524_27759.cpp:9:9: error: 'i' was not declared in this scope
9 | for(i=3; i<=end; i+=2) {
| ^
0_0_39655524_27759.cpp:14:12: error: 'i' was not declared in this scope
14 | return i > end ? 0 : 1;
| ^
0_0_39655524_27759.cpp: In function 'int main()':
0_0_39655524_27759.cpp:21:11: error: 'scanf' was not declared in this scope
21 | while(scanf("%d%d", &x, &y) != EOF) {
| ^~~~~
0_0_39655524_27759.cpp:21:36: error: 'EOF' was not declared in this scope
21 | while(scanf("%d%d", &x, &y) != EOF) {
| ^~~
0_0_39655524_27759.cpp:1:1: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 |
0_0_39655524_27759.cpp:27:27: error: 'fun' was not declared in this scope
27 | if(isnotprime(fun(i)))
| ^~~
0_0_39655524_27759.cpp:32:13: error: 'printf' was not declared in this scope
32 | printf("OK\n");
| ^~~~~~
0_0_39655524_27759.cpp:32:13: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39655524_27759.cpp:34:13: error: 'printf' was not declared in this scope
34 | printf("Sorry\n");
| ^~~~~~
0_0_39655524_27759.cpp:34:13: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
|