Submission #835964

#TimeUsernameProblemLanguageResultExecution timeMemory
835964Nicolas125841Plahte (COCI17_plahte)C++17
0 / 160
1 ms212 KiB
#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; assert(colors.find(c) == colors.end()); colors.insert(c); cout << "0\n"; } }

Compilation message (stderr)

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 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...