Borderou de evaluare (job #3354502)

Utilizator DraganMarius06Marius Dragan DraganMarius06 Data 18 mai 2026 18:11:31
Problema Custi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:9: warning: ISO C++11 requires whitespace after the macro name 7 | #define N=1005 | ^ main.cpp:7:10: error: expected primary-expression before '=' token 7 | #define N=1005 | ^ main.cpp:8:8: note: in expansion of macro 'N' 8 | int dp[N][N]; | ^ main.cpp:7:10: error: expected primary-expression before '=' token 7 | #define N=1005 | ^ main.cpp:8:11: note: in expansion of macro 'N' 8 | int dp[N][N]; | ^ main.cpp:7:10: error: expected primary-expression before '=' token 7 | #define N=1005 | ^ main.cpp:9:9: note: in expansion of macro 'N' 9 | int mat[N][N]; | ^ main.cpp:7:10: error: expected primary-expression before '=' token 7 | #define N=1005 | ^ main.cpp:9:12: note: in expansion of macro 'N' 9 | int mat[N][N]; | ^ main.cpp: In function 'int main()': main.cpp:17:17: error: 'dp' was not declared in this scope 17 | dp[i][0]=n+1; | ^~ main.cpp:19:17: error: 'mat' was not declared in this scope 19 | mat[i][0]=0; | ^~~ main.cpp:26:25: error: 'mat' was not declared in this scope 26 | mat[i][j]=elem; | ^~~ main.cpp:30:20: error: 'mat' was not declared in this scope 30 | if(mat[i][1]==0) dp[i][1]=0; | ^~~ main.cpp:30:34: error: 'dp' was not declared in this scope 30 | if(mat[i][1]==0) dp[i][1]=0; | ^~ main.cpp:31:20: error: 'mat' was not declared in this scope 31 | if(mat[i][1]==1) dp[i][1]=1; | ^~~ main.cpp:31:34: error: 'dp' was not declared in this scope 31 | if(mat[i][1]==1) dp[i][1]=1; | ^~ main.cpp:32:20: error: 'mat' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?