Submission #835965

# Submission time Handle Problem Language Result Execution time Memory
835965 2023-08-24T02:12:42 Z Nicolas125841 Plahte (COCI17_plahte) C++17
0 / 160
1 ms 212 KB
#include <bits/stdc++.h>

using namespace std;

int main(){
    cin.tie(NULL)->sync_with_stdio(false);

    int n, m;

    for(int i = 0; i < n; i++){
        int lx, ly, ux, uy;
        cin >> lx >> ly >> ux >> uy;
    }

    set<int> colors;

    for(int i = 0; i < m; i++){
        int x, y, c;
        cin >> x >> y >> c;

        while(colors.find(c) != colors.end());

        colors.insert(c);

        cout << "0\n";
    }
}

Compilation message

plahte.cpp: In function 'int main()':
plahte.cpp:10:22: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
   10 |     for(int i = 0; i < n; i++){
      |                    ~~^~~
plahte.cpp:17:22: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
   17 |     for(int i = 0; i < m; i++){
      |                    ~~^~~
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -