Borderou de evaluare (job #1854570)
Utilizator | Data | 22 ianuarie 2017 21:03:32 | |
---|---|---|---|
Problema | Jocul Flip | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:2:13: error: "1" may not appear in macro parameter list
#define BIT(1<<(k))
^
user.cpp: In function ‘int main()’:
user.cpp:12:24: error: ‘scan’ was not declared in this scope
scan("%d%d", &n, &m);
^
user.cpp:13:22: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i = 0; i < n, i++){
^
user.cpp:13:30: error: expected ‘;’ before ‘)’ token
for(int i = 0; i < n, i++){
^
user.cpp:14:26: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i = 0; i < m, i++){
^
user.cpp:14:34: error: expected ‘;’ before ‘)’ token
for(int i = 0; i < m, i++){
^
user.cpp:15:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
scanf("%d", tabla[n][m]);
^
user.cpp:18:29: error: ‘BIT’ was not declared in this scope
for(int p = 0; p < BIT(n); p++){
^
user.cpp:23:21: error: ‘c’ was not declared in this scope
if((c & BIT(I)) != 0){
^
user.cpp:23:29: error: ‘I’ was not declared in this scope
if((c & BIT(I)) != 0){
^
user.cpp:34:17: error: ‘sc’ was not declared in this scope
sc -= 2* scol[j];
^
user.cpp:10:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("flip.in" , "r", stdin );
^
user.cpp:11:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("flip.out", "w", stdout);
^
user.cpp:15:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", tabla[n][m]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !