Submission #1016520

#TimeUsernameProblemLanguageResultExecution timeMemory
1016520nisanduuParrots (IOI11_parrots)C++14
0 / 100
1 ms1052 KiB
#include "encoder.h" #include "encoderlib.h" #include <bits/stdc++.h> using namespace std; void encode(int N, int M[]) { int i; string st; string s2,f; int number,num; for(i=0; i<N; i++){ //num = i; //st = to_string(num); //s2 = to_string(M[i]); //f = st+s2; //number = stoi(f); //send(number); if(M[i]==1) send(i); } }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; void decode(int N, int L, int X[]) { int i, b,n,digit,j,num; //vector<pair<int,int>> v; vector<int> ans(N); string s,tmp; char d; for(i=0; i<L; i++) { //b = X[i]; //s = to_string(b); //n = s.length(); //d = s[1]; //digit = (d - '0'); //tmp = ""; //tmp += s[0]; //num = stoi(tmp); //mp[num] = digit; //v.push_back({num,digit}); ans[i]=1; } //sort(v.begin(),v.end()); //for(int i=0;i<N;i++){ // output(v[i].second); //} for(auto z:ans) output(z); }

Compilation message (stderr)

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:11:7: warning: unused variable 'number' [-Wunused-variable]
   11 |   int number,num;
      |       ^~~~~~
encoder.cpp:11:14: warning: unused variable 'num' [-Wunused-variable]
   11 |   int number,num;
      |              ^~~

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:7:10: warning: unused variable 'b' [-Wunused-variable]
    7 |   int i, b,n,digit,j,num;
      |          ^
decoder.cpp:7:12: warning: unused variable 'n' [-Wunused-variable]
    7 |   int i, b,n,digit,j,num;
      |            ^
decoder.cpp:7:14: warning: unused variable 'digit' [-Wunused-variable]
    7 |   int i, b,n,digit,j,num;
      |              ^~~~~
decoder.cpp:7:20: warning: unused variable 'j' [-Wunused-variable]
    7 |   int i, b,n,digit,j,num;
      |                    ^
decoder.cpp:7:22: warning: unused variable 'num' [-Wunused-variable]
    7 |   int i, b,n,digit,j,num;
      |                      ^~~
decoder.cpp:11:8: warning: unused variable 'd' [-Wunused-variable]
   11 |   char d;
      |        ^
#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...