Borderou de evaluare (job #1031535)
Utilizator | Data | 15 noiembrie 2013 18:03:29 | |
---|---|---|---|
Problema | Edist | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:23: error: expected unqualified-id before ‘,’ token
int n, m, k, i, j, min, v0[20002], v1[20002];
^
user.cpp: In function ‘int main()’:
user.cpp:12:20: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld", &n);
^
user.cpp:13:20: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld", &m);
^
user.cpp:14:20: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld", &k);
^
user.cpp:36:40: error: ‘v’ was not declared in this scope
if (v1[j+1]>v0[j+1]+1) v[j+1]=v0[j+1]+1;
^
user.cpp:43:9: error: ‘v’ was not declared in this scope
if (v[m]>k) v1[m]=k;
^
user.cpp:44:23: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld",v1[m]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !