# Problem D (NCPC-2006) [ Thu Oct 21 19:17:57 EEST 2010]

# | File | Judgement | Score | MaxTime | MaxMemory | TotalTime
--- | --- | --- | --- | --- | --- | ---
1 | /home/alt/work/java/djudge/problems/NCPC-2006/D/solutions/jezzball_jm.cpp | CE | 0 | n/a | n/a
2 | /home/alt/work/java/djudge/problems/NCPC-2006/D/solutions/jezzball_ng.java | AC | 1 | 832 ms | 31 342 592
3 | /home/alt/work/java/djudge/problems/NCPC-2006/D/solutions/jezzball_pa.cc | AC | 1 | 48 ms | 520 192
4 | /home/alt/work/java/djudge/problems/NCPC-2006/D/solutions/jezzball_tab.java | AC | 1 | 796 ms | 31 862 784

### Results of testing '/home/alt/work/java/djudge/problems/NCPC-2006/D/solutions/jezzball_jm.cpp'

Compilation Error
    jezzball_jm.cc: In function ‘double calc(int, int, std::vector >&, std::vector >&, std::vector >&, std::vector >&, int, int)’:
    jezzball_jm.cc:17: error: expected primary-expression before ‘?’ token
    jezzball_jm.cc:17: error: expected ‘:’ before ‘)’ token
    jezzball_jm.cc:17: error: expected primary-expression before ‘)’ token
    jezzball_jm.cc:32: error: call of overloaded ‘abs(int&)’ is ambiguous
    /usr/include/c++/4.4/cmath:94: note: candidates are: double std::abs(double)
    /usr/include/c++/4.4/cmath:98: note:                 float std::abs(float)
    /usr/include/c++/4.4/cmath:102: note:                 long double std::abs(long double)
    jezzball_jm.cc:45: error: ‘sort’ was not declared in this scope
    jezzball_jm.cc:48: warning: comparison between signed and unsigned integer expressions
    jezzball_jm.cc:50: warning: comparison between signed and unsigned integer expressions
    jezzball_jm.cc: In function ‘bool solve()’:
    jezzball_jm.cc:70: error: expected primary-expression before ‘?’ token
    jezzball_jm.cc:70: error: expected ‘:’ before ‘;’ token
    jezzball_jm.cc:70: error: expected primary-expression before ‘;’ token
    jezzball_jm.cc:72: error: ‘printf’ was not declared in this scope
    jezzball_jm.cc:74: error: ‘printf’ was not declared in this scope

### Results of testing '/home/alt/work/java/djudge/problems/NCPC-2006/D/solutions/jezzball_ng.java'

Test | Score | Time | Memory | OutputSize | Judgement | Validator | IO
--- | --- | --- | --- | --- | --- | --- | ---
1 | 1 | 832 ms of 2s 0 ms | 31 342 592 of 67 108 864 | 183 | AC | OK 21 token(s) compared [Checker-String] | 01.in - 01.out - /home/alt/work/java/djudge/work/2010-10-21_19-17-50-286_ex/

### Results of testing '/home/alt/work/java/djudge/problems/NCPC-2006/D/solutions/jezzball_pa.cc'

Test | Score | Time | Memory | OutputSize | Judgement | Validator | IO
--- | --- | --- | --- | --- | --- | --- | ---
1 | 1 | 48 ms of 2s 0 ms | 520 192 of 67 108 864 | 183 | AC | OK 21 token(s) compared [Checker-String] | 01.in - 01.out - /home/alt/work/java/djudge/work/2010-10-21_19-17-52-981_ex/

### Results of testing '/home/alt/work/java/djudge/problems/NCPC-2006/D/solutions/jezzball_tab.java'

Test | Score | Time | Memory | OutputSize | Judgement | Validator | IO
--- | --- | --- | --- | --- | --- | --- | ---
1 | 1 | 796 ms of 2s 0 ms | 31 862 784 of 67 108 864 | 183 | AC | OK 21 token(s) compared [Checker-String] | 01.in - 01.out - /home/alt/work/java/djudge/work/2010-10-21_19-17-55-982_ex/