Submission #240669

#TimeUsernameProblemLanguageResultExecution timeMemory
240669robertnovistanBuilding 4 (JOI20_building4)C++14
0 / 100
5 ms256 KiB
#include <iostream> #include <cstdio> #include <bitset> using namespace std; const int MAX_BATIMENTS = (1 * 1000); bitset <MAX_BATIMENTS> Accessibles[MAX_BATIMENTS][2]; int Luxures[MAX_BATIMENTS][2]; int nbBatiments; void Read() { scanf("%d", &nbBatiments); nbBatiments *= 2; for (int i = 0; i < 2; i ++) { for (int j = 0; j < nbBatiments; j ++) { scanf("%d", &Luxures[j][i]); } } return; } int main() { Read(); return 0; }

Compilation message (stderr)

building4.cpp: In function 'void Read()':
building4.cpp:15:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &nbBatiments);
     ~~~~~^~~~~~~~~~~~~~~~~~~~
building4.cpp:21:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
             scanf("%d", &Luxures[j][i]);
             ~~~~~^~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...