Pagini recente » Borderou de evaluare (job #707223) | Borderou de evaluare (job #2779458) | Borderou de evaluare (job #1613015) | Borderou de evaluare (job #3041589) | Borderou de evaluare (job #1487822)
Borderou de evaluare (job #1487822)
Raport evaluator
Compilare:
user.cpp: In function ‘char readN()’:
user.cpp:25:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=]
fscanf(fin,"%d",&n);
^
user.cpp: In function ‘char readM()’:
user.cpp:33:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=]
fscanf(fin,"%d",&m);
^
user.cpp: In function ‘void readRetete(int, reteta*)’:
user.cpp:46:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=]
fscanf(fin,"%d",&retete[i].q);
^
user.cpp:51:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘unsigned char*’ [-Wformat=]
fscanf(fin,"%d",&retete[i].price[j]);
^
user.cpp: In function ‘void backtr(int, int, int, char*, char, reteta*)’:
user.cpp:99:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
qCount += retete[sol[j]].q;
^
user.cpp:101:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(int k = 0;k<retete[sol[j]].q;k++)
^
user.cpp:103:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
mask[(retete[sol[j]].price[k]-1)] = true;
^
user.cpp:120:39: warning: array subscript has type ‘char’ [-Wchar-subscripts]
total += retete[sol[j]].total;
^
user.cpp: In function ‘char readN()’:
user.cpp:25:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&n);
^
user.cpp: In function ‘char readM()’:
user.cpp:33:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&m);
^
user.cpp: In function ‘void readRetete(int, reteta*)’:
user.cpp:42:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&type);
^
user.cpp:46:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&retete[i].q);
^
user.cpp:51:49: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&retete[i].price[j]);
^
user.cpp: In function ‘void readPrices(int, int*)’:
user.cpp:60:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&prices[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 264kb | OK | 10 |
2 | 0ms | 268kb | OK | 10 |
3 | 0ms | 268kb | OK | 10 |
4 | 4ms | 264kb | OK | 10 |
5 | 4ms | 264kb | OK | 10 |
6 | 8ms | 268kb | OK | 10 |
7 | 16ms | 268kb | OK | 10 |
8 | 20ms | 264kb | OK | 10 |
9 | 24ms | 268kb | OK | 10 |
10 | 16ms | 264kb | OK | 10 |
Punctaj total | 100 |