NO.cpp:5:27: error: expected unqualified-id before 'long'
long long dy[5050][5050], long long sum;
^
NO.cpp: In function 'int main()':
NO.cpp:8:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(st+1); N=strlen(st+1);
^
In file included from NO.cpp:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
NO.cpp:8:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(st+1); N=strlen(st+1);
^
In file included from NO.cpp:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
NO.cpp:8:11: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(st+1); N=strlen(st+1);
^
In file included from NO.cpp:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
NO.cpp:16:25: error: 'sum' was not declared in this scope
for(int j=1; j<i; j++)sum += dy[i][j]*2;
^
NO.cpp:17:3: error: 'sum' was not declared in this scope
sum += i;
^
NO.cpp:8:12: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
gets(st+1); N=strlen(st+1);
^