Submission #556909

#TimeUsernameProblemLanguageResultExecution timeMemory
556909ItamarBootfall (IZhO17_bootfall)C++14
0 / 100
45 ms122580 KiB
#include <map> #include <iostream> using namespace std; #include <vector> #include <queue> #include <set> #include <algorithm> #define ll long long #define vi vector<int> #define vll vector<ll> #define pi pair<int,int> #define pll pair<ll,ll> const int siz = 500; int a[siz]; bool dp[siz * siz][siz]; int uni[siz * siz]; int main() { int n; cin >> n; for (int i = 0; i < n; i++) { int ai; cin >> ai; a[i] = ai; } for (int i = 0; i < siz; i++) dp[0][i] = 1; for (int i = 1; i < siz * siz; i++) { for (int j = 0; j < siz; j++) { dp[i][j]++; } } }

Compilation message (stderr)

bootfall.cpp: In function 'int main()':
bootfall.cpp:33:20: warning: use of an operand of type 'bool' in 'operator++' is deprecated [-Wdeprecated]
   33 |             dp[i][j]++;
      |             ~~~~~~~^
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...