Borderou de evaluare (job #2158812)
Utilizator | Data | 10 martie 2018 16:32:21 | |
---|---|---|---|
Problema | Gard 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Read()’:
user.cpp:27:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf ("%d" , &v[i]);
^
user.cpp: In function ‘void Solve()’:
user.cpp:40:5: error: expected ‘;’ before ‘for’
for ( i = 1 ; i <= k ; i ++ )
^
user.cpp:40:17: warning: statement has no effect [-Wunused-value]
for ( i = 1 ; i <= k ; i ++ )
^
user.cpp:40:21: warning: statement has no effect [-Wunused-value]
for ( i = 1 ; i <= k ; i ++ )
^
user.cpp:40:33: error: expected ‘;’ before ‘)’ token
for ( i = 1 ; i <= k ; i ++ )
^
user.cpp:46:5: error: ‘else’ without a previous ‘if’
else if (lim[i]-lim[i-1] > 2)
^
user.cpp: In function ‘void Read()’:
user.cpp:24:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d" , &n);
^
user.cpp:27:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d" , &v[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:61:26: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(in,"r",stdin);
^
user.cpp:62:28: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(out,"w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !