제출 #1010689

#제출 시각아이디문제언어결과실행 시간메모리
1010689tarpent원형 문자열 (IZhO13_rowords)C++14
12 / 100
1 ms440 KiB
#include<bits/stdc++.h>
using namespace std;


string a,b;
int m,pr,od;
vector<char> ch;
int main(){
	cin>>a>>b;
	for(int i = 0; i<a.size(); i++){
		if(a[i]==b[i]) od++;
	}
	cout<<od;
	
	
	
}

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

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