Pagini recente » Borderou de evaluare (job #2644662) | Monitorul de evaluare | Borderou de evaluare (job #1219758) | Diferente pentru problema/modulo intre reviziile 6 si 7 | Borderou de evaluare (job #2343796)
Borderou de evaluare (job #2343796)
Raport evaluator
Compilare:
main.cpp: In function 'int f(int)':
main.cpp:15:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1,j=n ; i<=n ; ++i)
~^~~
main.cpp:19:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(j>=1 && a[i]+a[j]>x)
~~~~~~~~~^~
main.cpp: In function 'unsigned int func(unsigned int)':
main.cpp:39:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(f(i+pas)<x)
~~~~~~~~^~
main.cpp: In function 'int main()':
main.cpp:51:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sume2.in","r",stdin);
^
main.cpp:53:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sume2.out","w",stdout);
^
main.cpp:55:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%u%u",&n,&k);
^
main.cpp:59:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%u",&a[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK | 10 |
| 2 | 2ms | 131kb | OK | 10 |
| 3 | 3ms | 131kb | OK | 10 |
| 4 | 9ms | 131kb | OK | 10 |
| 5 | 20ms | 262kb | OK | 10 |
| 6 | 27ms | 262kb | OK | 10 |
| 7 | 34ms | 262kb | OK | 10 |
| 8 | 40ms | 262kb | OK | 10 |
| 9 | 42ms | 262kb | OK | 10 |
| 10 | 35ms | 262kb | OK | 10 |
| Punctaj total | 100 |