fork download
  1. #include<iostream>
  2. #include<stdlib.h>
  3. using namespace std;
  4. int main()
  5. {
  6. int n,*a,i,j,k,l=0;cin>>n;
  7. a=(int*)malloc(n*sizeof(int));
  8. for(i=0;i<n;i++)
  9. cin>>(*(a+i));
  10. for(i=0;i<n;i++){l=0;
  11. int d=(*(a+i));
  12. for(j=0;j<=d;j++){
  13. for(k=0;k<=j;k++){
  14. if(j*j+k*k==d)
  15. l++;}}
  16. if(l>0)
  17. cout<<"yes"<<endl;
  18. else
  19. cout<<"no"<<endl;}
  20. return 0;
  21. }
  22.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
100
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
compilation info
gnatgcc -c -pipe -O2 prog.adb
prog.adb:1:01: illegal character
prog.adb:2:01: illegal character
prog.adb:5:01: illegal character, replaced by "("
prog.adb:10:17: illegal character, replaced by "("
prog.adb:12:18: illegal character, replaced by "("
prog.adb:13:18: illegal character, replaced by "("
prog.adb:14:11: == should be =
prog.adb:15:05: illegal character, replaced by ")"
prog.adb:19:18: illegal character, replaced by ")"
prog.adb:21:01: illegal character, replaced by ")"
gnatmake: "prog.adb" compilation error
stdout
Standard output is empty