Submission #481302

#TimeUsernameProblemLanguageResultExecution timeMemory
481302unknownnnnParrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
SUBMISSION #481299 # Submission timeUTC+2 Handle Problem Language Result Execution time Memory 481299 2021-10-20 12:21:33 unknownnnn Parrots (IOI11_parrots) C++14 Compilation error 0 ms 0 KB encoder decoder #include "encoder.h" #include "encoderlib.h" #include <iostream> using namespace std; void encode(int n,int m[]) { int j=0; for(int i=0 ; i<n ; i++) { m[i]=(m[i]+j); j+=2; } for(int i=0 ; i<n ; i++) { send(m[i]); } }
SUBMISSION #481299 # Submission timeUTC+2 Handle Problem Language Result Execution time Memory 481299 2021-10-20 12:21:33 unknownnnn Parrots (IOI11_parrots) C++14 Compilation error 0 ms 0 KB encoder decoder #include "encoder.h" #include "encoderlib.h" #include <iostream> using namespace std; int novaniza[8]; void decode(int n, int l, int m[]) { int niza[n]; for(int i=0 ; i<l ; i++) { int pozicija=m[i]/2; novaniza[pozicija]=m[i]%2; } for(int i=0 ; i<n ; i++) { output(novaniza[i]); } }

Compilation message (stderr)

encoder.cpp:2:12: error: stray '#' in program
    2 | SUBMISSION #481299
      |            ^
encoder.cpp:5:3: error: invalid preprocessing directive #Submission
    5 | # Submission timeUTC+2 Handle Problem Language Result Execution time Memory
      |   ^~~~~~~~~~
encoder.cpp:2:1: error: 'SUBMISSION' does not name a type
    2 | SUBMISSION #481299
      | ^~~~~~~~~~

decoder.cpp:2:12: error: stray '#' in program
    2 | SUBMISSION #481299
      |            ^
decoder.cpp:5:3: error: invalid preprocessing directive #Submission
    5 | # Submission timeUTC+2 Handle Problem Language Result Execution time Memory
      |   ^~~~~~~~~~
decoder.cpp:2:1: error: 'SUBMISSION' does not name a type
    2 | SUBMISSION #481299
      | ^~~~~~~~~~
decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:28:9: error: 'output' was not declared in this scope
   28 |         output(novaniza[i]);
      |         ^~~~~~
decoder.cpp:20:9: warning: unused variable 'niza' [-Wunused-variable]
   20 |     int niza[n];
      |         ^~~~