Borderou de evaluare (job #2146713)

Utilizator tiberiu392Tiberiu Ungurianu tiberiu392 Data 28 februarie 2018 10:08:07
Problema Calcule Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:2:14: error: expected primary-expression before ‘=’ token #define KMax = 100005; ^ user.cpp:8:8: note: in expansion of macro ‘KMax’ char x[KMax],y[KMax]; ^ user.cpp:2:22: error: expected ‘]’ before ‘;’ token #define KMax = 100005; ^ user.cpp:8:8: note: in expansion of macro ‘KMax’ char x[KMax],y[KMax]; ^ user.cpp:8:12: error: expected unqualified-id before ‘]’ token char x[KMax],y[KMax]; ^ user.cpp:8:20: error: expected unqualified-id before ‘]’ token char x[KMax],y[KMax]; ^ user.cpp:2:14: error: expected primary-expression before ‘=’ token #define KMax = 100005; ^ user.cpp:9:13: note: in expansion of macro ‘KMax’ int fr1[60][KMax],fr2[60][KMax], k,q,i,j; ^ user.cpp:2:22: error: expected ‘]’ before ‘;’ token #define KMax = 100005; ^ user.cpp:9:13: note: in expansion of macro ‘KMax’ int fr1[60][KMax],fr2[60][KMax], k,q,i,j; ^ user.cpp:9:17: error: expected unqualified-id before ‘]’ token int fr1[60][KMax],fr2[60][KMax], k,q,i,j; ^ user.cpp:9:31: error: expected unqualified-id before ‘]’ token int fr1[60][KMax],fr2[60][KMax], k,q,i,j; ^ user.cpp: In function ‘void read()’: user.cpp:14:10: error: ‘k’ was not declared in this scope f >> k >> q; ^ user.cpp:14:15: error: ‘q’ was not declared in this scope f >> k >> q; ^ user.cpp:15:11: error: ‘i’ was not declared in this scope for ( i =1 ;i <= k ; i++ ) ^ user.cpp:16:14: error: ‘x’ was not declared in this scope f >> x[i]; ^ user.cpp:17:9: error: ‘i’ was not declared in this scope

Ceva nu functioneaza?