Pagini recente » Borderou de evaluare (job #3334414) | Borderou de evaluare (job #1675170) | Borderou de evaluare (job #88444) | Borderou de evaluare (job #633923) | Borderou de evaluare (job #2301797)
Borderou de evaluare (job #2301797)
Raport evaluator
Compilare:
main.cpp: In function 'void A(short int)':
main.cpp:9:30: warning: array subscript has type 'char' [-Wchar-subscripts]
printf("%hd ",p[i]);
^
main.cpp:15:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if(u[i]==false)
^
main.cpp:16:27: warning: array subscript has type 'char' [-Wchar-subscripts]
p[k]=i,u[i]=true,A(k+1),u[i]=false;
^
main.cpp:16:44: warning: array subscript has type 'char' [-Wchar-subscripts]
p[k]=i,u[i]=true,A(k+1),u[i]=false;
^
main.cpp: In function 'int main()':
main.cpp:21:89: warning: format '%hd' expects argument of type 'short int*', but argument 2 has type 'char*' [-Wformat=]
freopen("permutari.in","r",stdin),freopen("permutari.out","w",stdout),scanf("%hd",&n),A(1);
^
main.cpp:21:95: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("permutari.in","r",stdin),freopen("permutari.out","w",stdout),scanf("%hd",&n),A(1);
^
main.cpp:21:95: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:21:95: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK | 20 |
| 2 | 2ms | 131kb | OK | 20 |
| 3 | 3ms | 131kb | OK | 20 |
| 4 | 12ms | 131kb | OK | 20 |
| 5 | 86ms | 786kb | OK | 20 |
| Punctaj total | 100 |