Submission #835992

# Submission time Handle Problem Language Result Execution time Memory
835992 2023-08-24T03:49:28 Z Nicolas125841 Plahte (COCI17_plahte) C++17
0 / 160
243 ms 524288 KB
#include <bits/stdc++.h>
 
using namespace std;
 
vector<bitset<80000>> sets(80000, bitset<80000>());
 
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;
 
        assert(colors.find(c) == colors.end());
 
        colors.insert(c);
 
        cout << "0\n";
    }
}

Compilation message

plahte.cpp: In function 'int main()':
plahte.cpp:12:22: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
   12 |     for(int i = 0; i < n; i++){
      |                    ~~^~~
plahte.cpp:19:22: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
   19 |     for(int i = 0; i < m; i++){
      |                    ~~^~~
# Verdict Execution time Memory Grader output
1 Runtime error 243 ms 524288 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 230 ms 524288 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 213 ms 524288 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 207 ms 524288 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 210 ms 524288 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -