fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main(){
  4. int c;
  5. scanf("%d",&c);
  6. while(c--){
  7. int n;
  8. scanf("%d",&n);
  9. if(n==square root(n))
  10. printf("Yes\n");
  11. else
  12. printf("No\n");
  13. }
  14. return 0;
  15. }
  16.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:9:11: error: ‘square’ undeclared (first use in this function)
     if(n==square root(n))
           ^~~~~~
prog.c:9:11: note: each undeclared identifier is reported only once for each function it appears in
prog.c:9:18: error: expected ‘)’ before ‘root’
     if(n==square root(n))
                  ^~~~
stdout
Standard output is empty