Borderou de evaluare (job #2364989)
Utilizator | Data | 4 martie 2019 11:40:27 | |
---|---|---|---|
Problema | MarceLand | 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:11:11: error: 'm' was not declared in this scope
f>>n>>m;
^
main.cpp:13:36: error: invalid conversion from 'long long unsigned int' to 'const char*' [-fpermissive]
for(j=0;j<strlen(s);j++)if(s[j]=='.')a[i][j+1]
^
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:394:15: note: initializing argument 1 of 'size_t strlen(const char*)'
extern size_t strlen (const char *__s)
^~~~~~
main.cpp:13:48: error: invalid types 'long long unsigned int[long long unsigned int]' for array subscript
for(j=0;j<strlen(s);j++)if(s[j]=='.')a[i][j+1]
^
main.cpp:14:1: error: expected ';' before '}' token
}
^
main.cpp:13:63: warning: statement has no effect [-Wunused-value]
for(j=0;j<strlen(s);j++)if(s[j]=='.')a[i][j+1]
~~~~~~~~^
main.cpp:8:25: warning: unused variable 'k' [-Wunused-variable]
{unsigned long long t,n,k,p,i,j,z,s=1,sa=0,x,loc=0,y,q;;
^
main.cpp:8:27: warning: unused variable 'p' [-Wunused-variable]
{unsigned long long t,n,k,p,i,j,z,s=1,sa=0,x,loc=0,y,q;;
^
main.cpp:8:39: warning: unused variable 'sa' [-Wunused-variable]
{unsigned long long t,n,k,p,i,j,z,s=1,sa=0,x,loc=0,y,q;;
^~
main.cpp:8:44: warning: unused variable 'x' [-Wunused-variable]
{unsigned long long t,n,k,p,i,j,z,s=1,sa=0,x,loc=0,y,q;;
^
main.cpp:8:46: warning: unused variable 'loc' [-Wunused-variable]
{unsigned long long t,n,k,p,i,j,z,s=1,sa=0,x,loc=0,y,q;;
^~~
main.cpp:8:52: warning: unused variable 'y' [-Wunused-variable]
{unsigned long long t,n,k,p,i,j,z,s=1,sa=0,x,loc=0,y,q;;
^
main.cpp:8:54: warning: unused variable 'q' [-Wunused-variable]
{unsigned long long t,n,k,p,i,j,z,s=1,sa=0,x,loc=0,y,q;;
^
main.cpp:16:1: error: expected '}' at end of input
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !