Borderou de evaluare (job #2313791)
| Utilizator | Data | 7 ianuarie 2019 14:35:57 | |
|---|---|---|---|
| Problema | Algoritmul lui Gauss | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:32: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'double*' [-Wformat=]
scanf("%d",&a[i][j]);
^
main.cpp:19:50: error: invalid operands of types 'double' and 'double' to binary 'operator^'
a[i][k]^=a[j][k]^=a[i][k]^=a[j][k];
^
main.cpp:19:50: error: in evaluation of 'operator^=(double, double)'
main.cpp:6:86: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("gauss.in","r",stdin),freopen("gauss.out","w",stdout),scanf("%d%d",&n,&m);
^
main.cpp:6:86: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:6:86: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:9:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i][j]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
