Borderou de evaluare (job #1045834)
Utilizator | Data | 2 decembrie 2013 09:25:21 | |
---|---|---|---|
Problema | Farfurii | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void recur(int, int)’:
user.cpp:15:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf (g,"%d ",a[j]);
^
user.cpp: In function ‘int main()’:
user.cpp:26:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf (f,"%d",&a[i]);
^
user.cpp:28:6: error: ‘x’ was not declared in this scope
{ x[i-1]=a[i-1];
^
user.cpp:29:13: error: ‘up’ was not declared in this scope
up (i-1);
^
user.cpp:40:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf (g,"%d\n",max1);
^
user.cpp:43:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf (g,"%d ",a[poz]);
^
user.cpp:23:6: warning: unused variable ‘j’ [-Wunused-variable]
int j;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !