language: C++ 4.7.2 (gcc-4.7.2)
date: 930 days 1 hour ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <iostream>
 
int main()
{
    double score1, score2;
    float a      =       2.75    ;
    float b      =       5.25    ;
    float c      =       5.25    ;
    float d         =       2.75    ;
    float E1        =       3       ;
    float E2        =       6       ;
 
 
    score1 = 20 * b - 1 * a + 0.05 * d  /* - 0.0025 * c*/ + 0.0001 * E1 ;
    score2 = 20 * b - 1 * a + 0.05 * d  /* - 0.0025 * c*/ + 0.0001 * E2 ;
 
    std::cout << score1 << std::endl;
    std::cout << score2 << std::endl;
    std::cout << score1-score2 << std::endl;
 
    std::cin.get();
    return 0;
}
prog.cpp: In function ‘int main()’:
prog.cpp:8: warning: unused variable ‘c’