Pagini recente » Borderou de evaluare (job #289334) | Borderou de evaluare (job #1227945) | Borderou de evaluare (job #732108) | Borderou de evaluare (job #150801) | Borderou de evaluare (job #1962970)
Borderou de evaluare (job #1962970)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:15:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(fin,"%d%d",&n,&q);
^
user.cpp:15:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp:18:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(fin,"%d%d",&x[i],&y[i]);
^
user.cpp:18:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp:39:46: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(fout,"%d\n",v[y[i]]-v[x[i]-1]);
^
user.cpp:15:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&n,&q);
^
user.cpp:18:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&x[i],&y[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 268kb | OK | 10 |
2 | 4ms | 416kb | OK | 10 |
3 | 0ms | 364kb | OK | 10 |
4 | 0ms | 408kb | OK | 10 |
5 | 28ms | 1008kb | OK | 10 |
6 | 64ms | 2312kb | OK | 10 |
7 | 76ms | 2788kb | OK | 10 |
8 | 80ms | 5088kb | OK | 10 |
9 | 96ms | 5480kb | OK | 10 |
10 | 100ms | 5780kb | OK | 10 |
Punctaj total | 100 |