Borderou de evaluare (job #1588505)
Utilizator | Data | 3 februarie 2016 09:49:30 | |
---|---|---|---|
Problema | Suma4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void drum(int, int, int)’:
user.cpp:12:15: error: ‘k’ was not declared in this scope
if(niv == k)
^
user.cpp:14:15: error: too few arguments to function ‘void drum(int, int, int)’
else drum()
^
user.cpp:11:6: note: declared here
void drum(int i, int j, int niv){
^
user.cpp:15:1: error: expected ‘;’ before ‘}’ token
}
^
user.cpp: In function ‘int main()’:
user.cpp:53:10: error: too few arguments to function ‘void drum(int, int, int)’
drum();
^
user.cpp:11:6: note: declared here
void drum(int i, int j, int niv){
^
user.cpp:18:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("suma4.in", "r", stdin);
^
user.cpp:19:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("suma4.out", "w", stdout);
^
user.cpp:21:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
user.cpp:23:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !