Submission #526499

#TimeUsernameProblemLanguageResultExecution timeMemory
526499BilegtRed-blue table (IZhO19_stones)C++14
0 / 100
43 ms1244 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long #define pb push_back const int MOD = 1e9 + 7; const int INF = 1e9 + 1000; void nemeh(int a, int b){ int x, y, q, w, e; } void hasah(int a, int b){ int x, y, q, w, e; } void tentsuu(int a, int b){ int x, y, q, w, e; cout << a + (a-(a / 2 +1))<<endl; for(q = 1;q <= a; q++){ for( w = 1; w <= a / 2 +1;w++){ cout << '+'; } for( w = a/ 2+2; w <= a; w++){ cout << '-'; } cout << endl; } } int main(){ int t; cin >> t; while(t--){ int a, b, c, d, e, f; cin >> a >> b; if(a == b){ tentsuu(a, b); } if(a > b){ nemeh(a, b); } if(a < b){ hasah(a, b); } } return 0; }

Compilation message (stderr)

stones.cpp: In function 'void nemeh(int, int)':
stones.cpp:9:10: warning: unused variable 'x' [-Wunused-variable]
    9 |      int x, y, q, w, e;
      |          ^
stones.cpp:9:13: warning: unused variable 'y' [-Wunused-variable]
    9 |      int x, y, q, w, e;
      |             ^
stones.cpp:9:16: warning: unused variable 'q' [-Wunused-variable]
    9 |      int x, y, q, w, e;
      |                ^
stones.cpp:9:19: warning: unused variable 'w' [-Wunused-variable]
    9 |      int x, y, q, w, e;
      |                   ^
stones.cpp:9:22: warning: unused variable 'e' [-Wunused-variable]
    9 |      int x, y, q, w, e;
      |                      ^
stones.cpp: In function 'void hasah(int, int)':
stones.cpp:13:10: warning: unused variable 'x' [-Wunused-variable]
   13 |      int x, y, q, w, e;
      |          ^
stones.cpp:13:13: warning: unused variable 'y' [-Wunused-variable]
   13 |      int x, y, q, w, e;
      |             ^
stones.cpp:13:16: warning: unused variable 'q' [-Wunused-variable]
   13 |      int x, y, q, w, e;
      |                ^
stones.cpp:13:19: warning: unused variable 'w' [-Wunused-variable]
   13 |      int x, y, q, w, e;
      |                   ^
stones.cpp:13:22: warning: unused variable 'e' [-Wunused-variable]
   13 |      int x, y, q, w, e;
      |                      ^
stones.cpp: In function 'void tentsuu(int, int)':
stones.cpp:16:10: warning: unused variable 'x' [-Wunused-variable]
   16 |      int x, y, q, w, e;
      |          ^
stones.cpp:16:13: warning: unused variable 'y' [-Wunused-variable]
   16 |      int x, y, q, w, e;
      |             ^
stones.cpp:16:22: warning: unused variable 'e' [-Wunused-variable]
   16 |      int x, y, q, w, e;
      |                      ^
stones.cpp: In function 'int main()':
stones.cpp:32:17: warning: unused variable 'c' [-Wunused-variable]
   32 |       int a, b, c, d, e, f;
      |                 ^
stones.cpp:32:20: warning: unused variable 'd' [-Wunused-variable]
   32 |       int a, b, c, d, e, f;
      |                    ^
stones.cpp:32:23: warning: unused variable 'e' [-Wunused-variable]
   32 |       int a, b, c, d, e, f;
      |                       ^
stones.cpp:32:26: warning: unused variable 'f' [-Wunused-variable]
   32 |       int a, b, c, d, e, f;
      |                          ^
#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...