Borderou de evaluare (job #1656399)
Utilizator | Data | 19 martie 2016 11:58:10 | |
---|---|---|---|
Problema | Permutari 3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:1: error: expected initializer before ‘void’
void read()
^
user.cpp: In function ‘void perm()’:
user.cpp:23:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
perm[0] = 0;
^
user.cpp:23:13: error: assignment of function ‘void perm()’
perm[0] = 0;
^
user.cpp:23:13: error: cannot convert ‘int’ to ‘void()’ in assignment
user.cpp:25:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
perm[i] = perm[i] * perm[i-1];
^
user.cpp:25:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
perm[i] = perm[i] * perm[i-1];
^
user.cpp:25:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
perm[i] = perm[i] * perm[i-1];
^
user.cpp:25:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:25:37: error: invalid operands of types ‘void()’ and ‘void()’ to binary ‘operator*’
user.cpp: In function ‘int main()’:
user.cpp:32:10: error: ‘read’ was not declared in this scope
read();
^
user.cpp:30:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perm3.in", "r", stdin);
^
user.cpp:31:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perm3.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !