Borderou de evaluare (job #2350120)

Utilizator danutbodbodnariuc danut danutbod Data 21 februarie 2019 08:46:07
Problema Muzeu Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:14:18: error: expected ')' before ';' token cin.get(linie,n+1;) ^ main.cpp:13:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=0;i<n;i++) ^~~ main.cpp:14:19: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' cin.get(linie,n+1;) ^ main.cpp:14:19: error: expected primary-expression before ')' token main.cpp:18:5: error: 'm' was not declared in this scope m=strlen(linie,n+1); ^ main.cpp:18:23: error: too many arguments to function 'size_t strlen(const char*)' m=strlen(linie,n+1); ^ In file included from /usr/include/c++/6/cstring:42:0, from main.cpp:3: /usr/include/string.h:394:15: note: declared here extern size_t strlen (const char *__s) ^~~~~~ main.cpp:19:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(j=0;j<n;j++) ^~~ main.cpp:22:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if(linie[j]=='#') ^~ main.cpp:25:20: warning: statement has no effect [-Wunused-value] a[i][j]==0; ~~~~~~~^~~ main.cpp:40:25: error: expected ')' before ']' token if(a[i+1][j]==1]) ^ main.cpp:40:25: error: expected primary-expression before ']' token main.cpp:42:28: error: expected ')' before ']' token if(a[i-1][j]==1]) ^ main.cpp:42:28: error: expected primary-expression before ']' token main.cpp:44:26: error: expected ')' before ']' token if(a[i][j+1]==1]) ^ main.cpp:44:26: error: expected primary-expression before ']' token main.cpp:46:25: error: expected ')' before ']' token if(a[i][j-1]==1]) ^ main.cpp:46:25: error: expected primary-expression before ']' token main.cpp:57:18: error: expected ']' before ';' token a[i][j=-1;] ^ Non zero exit status: 1

Ceva nu functioneaza?