Borderou de evaluare (job #1315141)
Utilizator | Data | 12 ianuarie 2015 15:58:25 | |
---|---|---|---|
Problema | Spirala4 | Status | done |
Runda | ichbscoala2015clasa7 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int (*)[300]’ [-Wformat=]
fscanf(in, "%d", &v[j]);
^
user.cpp:17:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int*’ [-Wformat=]
fprintf(out, "%d ", v[1]);
^
user.cpp:20:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int*’ [-Wformat=]
fprintf(out, "%d ", v[n]);
^
user.cpp:23:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int*’ [-Wformat=]
fprintf(out, "%d ", v[n]);
^
user.cpp:26:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int*’ [-Wformat=]
fprintf(out, "%d ", v[1]);
^
user.cpp:30:34: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
v[i-1][j-1] = v[j];
^
user.cpp:8:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d",&n);
^
user.cpp:12:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &v[j]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !