Borderou de evaluare (job #2084981)

Utilizator OlivianOlivian Dan Cretu Olivian Data 9 decembrie 2017 14:14:52
Problema Nunta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:14: warning: statement has no effect [-Wunused-value] for(n;n>=3;n--) ^ user.cpp:17:32: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘long int’ [-Wformat=] if(b>a) printf("%lld",b); ^ user.cpp:18:29: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘long int’ [-Wformat=] else printf("%lld",a); ^ user.cpp:5:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nunta.in","r",stdin); ^ user.cpp:6:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nunta.out","w",stdout); ^ user.cpp:10:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbOK10
20msDepăşitMemory limit exceeded.0
30msDepăşitMemory limit exceeded.0
40msDepăşitMemory limit exceeded.0
50msDepăşitMemory limit exceeded.0
60msDepăşitMemory limit exceeded.0
70msDepăşitMemory limit exceeded.0
80msDepăşitMemory limit exceeded.0
90msDepăşitMemory limit exceeded.0
100msDepăşitMemory limit exceeded.0
Punctaj total10

Ceva nu functioneaza?