Submission #1339443

#TimeUsernameProblemLanguageResultExecution timeMemory
1339443po_rag526Parametriziran (COCI19_parametriziran)C++20
Compilation error
0 ms0 KiB
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>

using namespace std;

const int N = 50005;
string s[N];
bitset<

int main() {
    int n, m;
    cin >> n >> m;
    for (int i = 0; i < n; i ++) {
        cin >> s[i];
    }
    long long ans = 0;
    for (int i = 0; i < n; i ++) {
        for (int j = i + 1; j < n; j ++) {
            bool ok = true;
            for (int k = 0; k < m; k ++) {
                if (s[i][k] != s[j][k] && s[i][k] != '?' && s[j][k] != '?') {
                    ok = false;
                    break;
                }
            }
            if (ok) {
                ans ++;
            }
        }
    }
    cout << ans << '\n';
}

/*

*/

Compilation message (stderr)

Main.cpp:10:10: error: template argument 1 is invalid
   10 | int main() {
      |          ^
Main.cpp:10:12: error: expected unqualified-id before '{' token
   10 | int main() {
      |            ^