Borderou de evaluare (job #1661283)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 23 martie 2016 19:18:58
Problema Cifru 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:21: error: ‘DIM’ was not declared in this scope int V[DIM1 << 1], W[DIM], A[DIM1 << 1], B[DIM]; ^ user.cpp:7:43: error: ‘DIM’ was not declared in this scope int V[DIM1 << 1], W[DIM], A[DIM1 << 1], B[DIM]; ^ user.cpp: In function ‘int main()’: user.cpp:33:36: error: ‘W’ was not declared in this scope fscanf( input_file, "%d", &W[i] ); ^ user.cpp:41:9: error: ‘B’ was not declared in this scope B[i] = ( Dr[ W[i] ] == i ) ? ( St[ W[i] ] + N - i ) : ( Dr[ W[i] ] - i ); ^ user.cpp:41:22: error: ‘W’ was not declared in this scope B[i] = ( Dr[ W[i] ] == i ) ? ( St[ W[i] ] + N - i ) : ( Dr[ W[i] ] - i ); ^ user.cpp:45:21: error: ‘B’ was not declared in this scope while( L && B[i] != B[L + 1] ) ^ user.cpp:48:13: error: ‘B’ was not declared in this scope if( B[i] == B[L + 1] ) ^ user.cpp:56:29: error: ‘B’ was not declared in this scope while( L && A[i] != B[L + 1] ) ^ user.cpp:59:21: error: ‘B’ was not declared in this scope if( A[i] == B[L + 1] ) ^ user.cpp:66:29: error: ‘W’ was not declared in this scope C[ V[j] ] = W[j - (i - N + 1) + 1]; ^ user.cpp:15:42: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf( input_file, "%d %d", &N, &M ); ^ user.cpp:18:42: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf( input_file, "%d", &V[i] ); ^

Ceva nu functioneaza?