# Problem I (NWERC-2008) [ Fri Oct 22 17:18:06 EEST 2010]

# | File | Judgement | Score | MaxTime | MaxMemory | TotalTime
--- | --- | --- | --- | --- | --- | ---
1 | /home/alt/work/java/djudge/problems/NWERC-2008/I/solutions/I-alt.cpp | AC | 1 | 20 ms | 524 288
2 | /home/alt/work/java/djudge/problems/NWERC-2008/I/solutions/erikjan.java | AC | 1 | 232 ms | 19 943 424
3 | /home/alt/work/java/djudge/problems/NWERC-2008/I/solutions/i1.cpp | CE | 0 | n/a | n/a
4 | /home/alt/work/java/djudge/problems/NWERC-2008/I/solutions/i2.cpp | CE | 0 | n/a | n/a
5 | /home/alt/work/java/djudge/problems/NWERC-2008/I/solutions/i3.cpp | CE | 0 | n/a | n/a

### Results of testing '/home/alt/work/java/djudge/problems/NWERC-2008/I/solutions/I-alt.cpp'

Test | Score | Time | Memory | OutputSize | Judgement | Validator | IO
--- | --- | --- | --- | --- | --- | --- | ---
1 | 1 | 20 ms of 20s 0 ms | 524 288 of 67 108 864 | 272 | AC | OK 19 token(s) compared [Checker-Float [1.0E-6, abs: true, rel: true]] | 01.in - 01.out - /home/alt/work/java/djudge/work/2010-10-22_17-18-03-566_ex/

### Results of testing '/home/alt/work/java/djudge/problems/NWERC-2008/I/solutions/erikjan.java'

Test | Score | Time | Memory | OutputSize | Judgement | Validator | IO
--- | --- | --- | --- | --- | --- | --- | ---
1 | 1 | 232 ms of 20s 0 ms | 19 943 424 of 67 108 864 | 307 | AC | OK 19 token(s) compared [Checker-Float [1.0E-6, abs: true, rel: true]] | 01.in - 01.out - /home/alt/work/java/djudge/work/2010-10-22_17-18-04-718_ex/

### Results of testing '/home/alt/work/java/djudge/problems/NWERC-2008/I/solutions/i1.cpp'

Compilation Error
    i1.cc: In function ‘double dist(point, point, point)’:
    i1.cc:23: 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)
    i1.cc: In function ‘int main()’:
    i1.cc:45: warning: comparison between signed and unsigned integer expressions
    i1.cc:46: warning: comparison between signed and unsigned integer expressions
    i1.cc:47: error: expected primary-expression before ‘?’ token
    i1.cc:47: error: expected primary-expression before ‘=’ token
    i1.cc:47: error: expected ‘:’ before ‘;’ token
    i1.cc:47: error: expected primary-expression before ‘;’ token
    i1.cc:48: error: expected primary-expression before ‘?’ token
    i1.cc:48: error: expected primary-expression before ‘=’ token
    i1.cc:48: error: expected ‘:’ before ‘;’ token
    i1.cc:48: error: expected primary-expression before ‘;’ token

### Results of testing '/home/alt/work/java/djudge/problems/NWERC-2008/I/solutions/i2.cpp'

Compilation Error
    i2.cc: In function ‘double d(P, P, P)’:
    i2.cc:22: error: expected primary-expression before ‘?’ token
    i2.cc:22: error: expected primary-expression before ‘?’ token
    i2.cc:22: error: expected ‘:’ before ‘;’ token
    i2.cc:22: error: expected primary-expression before ‘;’ token
    i2.cc:22: error: expected ‘:’ before ‘;’ token
    i2.cc:22: error: expected primary-expression before ‘;’ token
    i2.cc: In function ‘double d(P, P, P, P)’:
    i2.cc:27: error: expected primary-expression before ‘?’ token
    i2.cc:27: error: expected primary-expression before ‘?’ token
    i2.cc:27: error: expected primary-expression before ‘?’ token
    i2.cc:27: error: expected ‘:’ before ‘;’ token
    i2.cc:27: error: expected primary-expression before ‘;’ token
    i2.cc:27: error: expected ‘:’ before ‘;’ token
    i2.cc:27: error: expected primary-expression before ‘;’ token
    i2.cc:27: error: expected ‘:’ before ‘;’ token
    i2.cc:27: error: expected primary-expression before ‘;’ token
    i2.cc: In function ‘void rp(int&, P*)’:
    i2.cc:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
    i2.cc:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
    i2.cc: In function ‘void solve()’:
    i2.cc:43: error: expected primary-expression before ‘?’ token
    i2.cc:43: error: expected primary-expression before ‘=’ token
    i2.cc:43: error: expected ‘:’ before ‘;’ token
    i2.cc:43: error: expected primary-expression before ‘;’ token
    i2.cc: In function ‘int main()’:
    i2.cc:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result

### Results of testing '/home/alt/work/java/djudge/problems/NWERC-2008/I/solutions/i3.cpp'

Compilation Error
    i3.cc: In function ‘double dist(line, line)’:
    i3.cc:70: error: expected primary-expression before ‘?’ token
    i3.cc:70: error: expected primary-expression before ‘=’ token
    i3.cc:70: error: expected ‘:’ before ‘;’ token
    i3.cc:70: error: expected primary-expression before ‘;’ token
    i3.cc:71: error: expected primary-expression before ‘?’ token
    i3.cc:71: error: expected primary-expression before ‘=’ token
    i3.cc:71: error: expected ‘:’ before ‘;’ token
    i3.cc:71: error: expected primary-expression before ‘;’ token
    i3.cc:72: error: expected primary-expression before ‘?’ token
    i3.cc:72: error: expected primary-expression before ‘=’ token
    i3.cc:72: error: expected ‘:’ before ‘;’ token
    i3.cc:72: error: expected primary-expression before ‘;’ token
    i3.cc: In function ‘int main()’:
    i3.cc:116: error: ‘scanf’ was not declared in this scope
    i3.cc:124: error: ‘printf’ was not declared in this scope
    i3.cc:133: error: ‘printf’ was not declared in this scope
    i3.cc:142: warning: comparison between signed and unsigned integer expressions
    i3.cc:144: warning: comparison between signed and unsigned integer expressions
    i3.cc:148: error: ‘printf’ was not declared in this scope
    i3.cc:156: error: ‘printf’ was not declared in this scope
    i3.cc:165: warning: comparison between signed and unsigned integer expressions
    i3.cc:170: error: ‘printf’ was not declared in this scope
    i3.cc:176: warning: comparison between signed and unsigned integer expressions
    i3.cc:177: warning: comparison between signed and unsigned integer expressions
    i3.cc:192: error: ‘printf’ was not declared in this scope
    i3.cc:195: error: ‘printf’ was not declared in this scope