Borderou de evaluare (job #1125140)
Utilizator | Philip Dumitru PhilipDumitru | Data | 26 februarie 2014 15:53:18 |
---|---|---|---|
Problema | Invsc | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
fscanf(fin, "%ld", &n);
^
user.cpp:29:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
fscanf(fin, "%ld", &v[i]);
^
user.cpp:33:20: error: expected primary-expression before ‘>’ token
for (i = 1; n => i; ++i)
^
user.cpp:38:36: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
fprintf(fout, "%ld\n", v[i]);
^
user.cpp:25:15: warning: unused variable ‘j’ [-Wunused-variable]
int n, i, j, k, x, y;
^
user.cpp:25:18: warning: unused variable ‘k’ [-Wunused-variable]
int n, i, j, k, x, y;
^
user.cpp:25:21: warning: unused variable ‘x’ [-Wunused-variable]
int n, i, j, k, x, y;
^
user.cpp:25:24: warning: unused variable ‘y’ [-Wunused-variable]
int n, i, j, k, x, y;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !