F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_13806456_25615.cpp:1:586: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/iostream>usin: Invalid argument
 #include<iostream>using namespace std;int f[26];int temp[26];char str[10001];int main(){ //freopen("a.txt","r",stdin); int cas; scanf("%d",&cas); while(cas--){  memset(f,0,sizeof(f));  scanf("%s",str);  for(int i=0;i<strlen(str);i++){   f[str[i]-'A']++;  }  int number;  scanf("%d",&number);  while(number--){   bool flag=true;   for(i=0;i<26;i++){    temp[i]=f[i];   }   scanf("%s",str);   for(i=0;i<strlen(str);i++){    if(temp[str[i]-'A']>0){     temp[str[i]-'A']--;    }else{     flag=false;     break;    }   }   if(flag){    printf("YES\n");   }else{    printf("NO\n");   }  } }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
compilation terminated.


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 16:44:07, Gzip enabled