제출 #1010694

#제출 시각아이디문제언어결과실행 시간메모리
1010694tarpent원형 문자열 (IZhO13_rowords)C++14
24 / 100
1 ms440 KiB
#include<bits/stdc++.h> using namespace std; string a,b; int m,pr,od; vector<char> ch; int aa[26] = {0}; int bb[26] = {0}; int main(){ cin>>a>>b; for(int i = 0; i<a.size(); i++){ aa[a[i]-'a']++; bb[b[i]-'a']++; } for(int i = 0;i<26; i++) od+=min(aa[i],bb[i]); cout<<od; }

컴파일 시 표준 에러 (stderr) 메시지

rowords.cpp: In function 'int main()':
rowords.cpp:14:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |  for(int i = 0; i<a.size(); i++){
      |                 ~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...