Pagini recente » Borderou de evaluare (job #315701) | Borderou de evaluare (job #589702) | Borderou de evaluare (job #879757) | Borderou de evaluare (job #1266746) | Borderou de evaluare (job #2221794)
Borderou de evaluare (job #2221794)
Raport evaluator
Compilare:
user.cpp:2:33: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
std::ifstream f("aria.in");main(){long double N,a,b,x,y,X,Y,S=0;f>>N>>a>>b;x=a;for(y=b;--N;S+=x*Y-X*y,x=X,y=Y)f>>X>>Y;S+=x*b-a*y;freopen("aria.out","w",stdout);printf("%.5f",S/2);}
^
user.cpp: In function ‘int main()’:
user.cpp:2:178: warning: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘long double’ [-Wformat=]
std::ifstream f("aria.in");main(){long double N,a,b,x,y,X,Y,S=0;f>>N>>a>>b;x=a;for(y=b;--N;S+=x*Y-X*y,x=X,y=Y)f>>X>>Y;S+=x*b-a*y;freopen("aria.out","w",stdout);printf("%.5f",S/2);}
^
user.cpp:2:160: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
std::ifstream f("aria.in");main(){long double N,a,b,x,y,X,Y,S=0;f>>N>>a>>b;x=a;for(y=b;--N;S+=x*Y-X*y,x=X,y=Y)f>>X>>Y;S+=x*b-a*y;freopen("aria.out","w",stdout);printf("%.5f",S/2);}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1384kb | Mai incearca ! | 0 |
2 | 0ms | 1392kb | Mai incearca ! | 0 |
3 | 0ms | 1396kb | Mai incearca ! | 0 |
4 | 0ms | 1392kb | Mai incearca ! | 0 |
5 | 24ms | 1392kb | Mai incearca ! | 0 |
6 | 28ms | 1388kb | Mai incearca ! | 0 |
7 | 196ms | 1396kb | Mai incearca ! | 0 |
8 | 192ms | 1392kb | Mai incearca ! | 0 |
9 | 252ms | 1388kb | Mai incearca ! | 0 |
10 | 256ms | 1392kb | Mai incearca ! | 0 |
Punctaj total | 0 |