제출 #976129

#제출 시각아이디문제언어결과실행 시간메모리
976129vjudge1Pizza (COCI21_pizza)C++17
0 / 50
1 ms348 KiB
#include <bits/stdc++.h>
using namespace std;
int main(){
    int N; cin >> N;
    int A[N];
    string Ai;
    for(int i = 0; i < N; i++){
        cin >> A[i];
        Ai += to_string(A[i]);
    }
    int M; cin >> M;
    int beli = 0;
    for(int i = 0; i < M; i++){
        int K;
        cin >> K;
        int B[K];
        bool boleh = true;
        for(int j = 0; j < K; j++){
            cin >> B[j];
            string Bi = to_string(B[j]);
            if(Ai.find(Bi) != -1){
                boleh = false;
            }
        }
        if(boleh) beli++;
    }
    cout << beli <<endl; 
    return 0;
}

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

Main.cpp: In function 'int main()':
Main.cpp:21:28: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   21 |             if(Ai.find(Bi) != -1){
      |                ~~~~~~~~~~~~^~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...