Submission #263071

#TimeUsernameProblemLanguageResultExecution timeMemory
263071ElyesChaabouniPyramid Base (IOI08_pyramid_base)C++14
0 / 100
1 ms384 KiB
/*#pragma GCC optimize("O3")*/ #include<bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> //#define ordered_set tree<int, null_type,less<int >, rb_tree_tag,tree_order_statistics_node_update> #define eps 1e-9 #define MOD1 998244353 #define MOD2 1000000007 #define INV_10 299473306 #define INF 1000000000 #define PI 3.14159265358979323846 using namespace std; int main() { ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); int n, m, b, p; cin >> m >> n >> b >> p; int r[n][m], d[n][m], dp[n][m]; for(int i = 0; i < n; i++) for(int j = 0; j < m; j++) for(int k = 0; k < p; k++) dp[i][j]=1; } //size

Compilation message (stderr)

pyramid_base.cpp: In function 'int main()':
pyramid_base.cpp:18:6: warning: unused variable 'r' [-Wunused-variable]
   18 |  int r[n][m], d[n][m], dp[n][m];
      |      ^
pyramid_base.cpp:18:15: warning: unused variable 'd' [-Wunused-variable]
   18 |  int r[n][m], d[n][m], dp[n][m];
      |               ^
pyramid_base.cpp:18:24: warning: variable 'dp' set but not used [-Wunused-but-set-variable]
   18 |  int r[n][m], d[n][m], dp[n][m];
      |                        ^~
#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...
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...