Borderou de evaluare (job #1102067)
Utilizator | Data | 9 februarie 2014 13:08:13 | |
---|---|---|---|
Problema | Ninja | Status | done |
Runda | Algoritmiada 2014 - Runda 2, Clasele 11-12 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:29:13: error: redeclaration of ‘int x’
int x, y;
^
user.cpp:28:14: error: ‘int x’ previously declared here
for (int x, y, i = 0; i < m; ++i) {
^
user.cpp:29:16: error: redeclaration of ‘int y’
int x, y;
^
user.cpp:28:17: error: ‘int y’ previously declared here
for (int x, y, i = 0; i < m; ++i) {
^
user.cpp:28:14: warning: unused variable ‘x’ [-Wunused-variable]
for (int x, y, i = 0; i < m; ++i) {
^
user.cpp:28:17: warning: unused variable ‘y’ [-Wunused-variable]
for (int x, y, i = 0; i < m; ++i) {
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !