답안 #1010687

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1010687 2024-06-29T09:33:46 Z tarpent 원형 문자열 (IZhO13_rowords) C++14
12 / 100
2 ms 440 KB
#include<bits/stdc++.h>
using namespace std;


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

Compilation message

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++){
      |                 ~^~~~~~~~~
rowords.cpp:11:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |   for(int j = 0; j<b.size(); j++){
      |                  ~^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 344 KB Output isn't correct
3 Incorrect 1 ms 348 KB Output isn't correct
4 Correct 0 ms 348 KB Output is correct
5 Incorrect 0 ms 348 KB Output isn't correct
6 Incorrect 0 ms 348 KB Output isn't correct
7 Correct 2 ms 344 KB Output is correct
8 Incorrect 1 ms 348 KB Output isn't correct
9 Incorrect 1 ms 348 KB Output isn't correct
10 Incorrect 2 ms 348 KB Output isn't correct
11 Incorrect 2 ms 348 KB Output isn't correct
12 Incorrect 1 ms 440 KB Output isn't correct
13 Incorrect 1 ms 348 KB Output isn't correct
14 Incorrect 2 ms 348 KB Output isn't correct
15 Incorrect 2 ms 348 KB Output isn't correct
16 Incorrect 1 ms 436 KB Output isn't correct
17 Incorrect 1 ms 344 KB Output isn't correct
18 Incorrect 1 ms 348 KB Output isn't correct
19 Incorrect 1 ms 348 KB Output isn't correct
20 Incorrect 1 ms 348 KB Output isn't correct
21 Incorrect 1 ms 348 KB Output isn't correct
22 Incorrect 1 ms 344 KB Output isn't correct
23 Incorrect 1 ms 348 KB Output isn't correct
24 Incorrect 1 ms 348 KB Output isn't correct
25 Incorrect 1 ms 440 KB Output isn't correct