Submission #978998

#TimeUsernameProblemLanguageResultExecution timeMemory
978998ZHIRDILBILDIZStreet Lamps (APIO19_street_lamps)C++14
0 / 100
982 ms121152 KiB
#include <iostream> #include <map> #include <unistd.h> int main () { std::ios_base::sync_with_stdio(0); std::cin.tie(0), std::cout.tie(0); int t; std::cin >> t; std::map<int, int> m; system("rm pizda"); // while (true) { // } while (t--) { int n, x; std::cin >> n; for (int i = 0; i < n; ++i) { std::cin >> x; m[x] = 1; } std::cin >> n; for (int i = 0; i < n; ++i) { std::cin >>x; if (m[x])std::cout << "YES\n"; else std::cout << "NO\n"; } } return 0; }

Compilation message (stderr)

street_lamps.cpp: In function 'int main()':
street_lamps.cpp:11:11: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   11 |     system("rm pizda");
      |     ~~~~~~^~~~~~~~~~~~
#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...