Pagini recente » Borderou de evaluare (job #1616468) | Borderou de evaluare (job #371559) | Borderou de evaluare (job #1526721) | Borderou de evaluare (job #1308769) | Borderou de evaluare (job #1617937)
Borderou de evaluare (job #1617937)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:34:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf(f,"%d",&n);
^
user.cpp:36:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(f,"%d %d",&v[i][0],&v[i][1]);
^
user.cpp:36:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp:46:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
fprintf(g,"%d",k);
^
user.cpp:34:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&n);
^
user.cpp:36:44: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&v[i][0],&v[i][1]);
^
user.cpp:42:62: warning: ‘k’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (v[i][1]<=v[ref][1] || (v[ref][0]==v[i][0])) { k++; if (v[i][1]>v[ref][1]) ref=i; }
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 268kb | OK | 10 |
2 | 0ms | 260kb | OK | 10 |
3 | 4ms | 416kb | OK | 10 |
4 | 8ms | 504kb | OK | 10 |
5 | 8ms | 508kb | OK | 10 |
6 | 8ms | 512kb | OK | 10 |
7 | 8ms | 508kb | OK | 10 |
8 | 8ms | 508kb | OK | 10 |
9 | 8ms | 508kb | OK | 10 |
10 | 8ms | 508kb | OK | 10 |
Punctaj total | 100 |