Borderou de evaluare (job #1382871)

Utilizator sorin_olimpicoolSorin Olimpicu sorin_olimpicool Data 9 martie 2015 17:35:10
Problema Paranteze2 Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:9: error: expected ‘]’ before numeric constant char a[[1000002]; ^ user.cpp: In function ‘int main()’: user.cpp:15:22: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive] long len = strlen(a); ^ In file included from /usr/include/c++/4.8/cstring:42:0, from user.cpp:2: /usr/include/string.h:399:15: error: initializing argument 1 of ‘size_t strlen(const char*)’ [-fpermissive] extern size_t strlen (__const char *__s) ^ user.cpp:18:12: error: invalid types ‘char[long long int]’ for array subscript if (a[i] == ')') { ^ user.cpp:19:21: error: ‘top’ was not declared in this scope if (top > 0) { ^ user.cpp:33:17: error: ‘top’ was not declared in this scope top++; ^

Ceva nu functioneaza?