Borderou de evaluare (job #2282079)
Utilizator | Data | 13 noiembrie 2018 10:02:57 | |
---|---|---|---|
Problema | Qvect | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:85:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d", n);
^
main.cpp:86:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d", q);
^
main.cpp:89:28: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d", m[i][0]);
^
main.cpp:93:32: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d", m[i][j]);
^
main.cpp:99:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d", tip);
^
main.cpp:100:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d", i);
^
main.cpp:101:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d", j);
^
main.cpp:103:13: error: 'out' was not declared in this scope
out << printf("%d\n", rezolvare1(m[i], m[j]));
^~~
main.cpp:105:13: error: 'out' was not declared in this scope
out << printf("%d\n", rezolvare2(i, j));
^~~
main.cpp:82:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sum.in", "r", stdin);
^
main.cpp:83:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sum.out", "w", stdout);
^
main.cpp:85:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", n);
^
main.cpp:86:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", q);
^
main.cpp:89:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", m[i][0]);
^
main.cpp:93:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", m[i][j]);
^
main.cpp:99:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", tip);
^
main.cpp:100:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !