Borderou de evaluare (job #2352971)
Utilizator | Data | 23 februarie 2019 19:29:58 | |
---|---|---|---|
Problema | Robot4 | Status | done |
Runda | Info Oltenia 2019 Proba Individuala Clasele 5-6 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:23:14: error: 'n' was not declared in this scope
cin >> n >> w >> x;
^
main.cpp:23:19: error: 'w' was not declared in this scope
cin >> n >> w >> x;
^
main.cpp:23:24: error: 'x' was not declared in this scope
cin >> n >> w >> x;
^
main.cpp:8:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen( "robot4.in", "r", stdin );
^
main.cpp:9:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen( "robot4.out", "w", stdout );
^
main.cpp:11:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d", &cer );
^
main.cpp:14:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d%d%d%d", &n, &w, &x, &p );
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !