0_0_13804954_31875.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13804954_31875.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13804954_31875.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13804954_31875.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13804954_31875.cpp:5:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13804954_31875.cpp:10:1: error: 'string' does not name a type
string ans[MAX],name;
^
0_0_13804954_31875.cpp: In function 'int main()':
0_0_13804954_31875.cpp:15:5: error: 'cin' was not declared in this scope
cin total;
^
0_0_13804954_31875.cpp:17:9: error: expected ';' before 'cin'
cin num name;
^
0_0_13804954_31875.cpp:17:14: error: expected ')' before 'num'
cin num name;
^
0_0_13804954_31875.cpp:17:19: error: expected ';' before 'name'
cin num name;
^
0_0_13804954_31875.cpp:18:9: error: 'ans' was not declared in this scope
ans[0] += name;
^
0_0_13804954_31875.cpp:18:19: error: 'name' was not declared in this scope
ans[0] += name;
^
0_0_13804954_31875.cpp:19:19: error: 'num' was not declared in this scope
m = max(m,num);
^
0_0_13804954_31875.cpp:19:22: error: 'max' was not declared in this scope
m = max(m,num);
^
0_0_13804954_31875.cpp:20:33: error: 'memset' was not declared in this scope
memset(cnt,0,sizeof(cnt));
^
0_0_13804954_31875.cpp:22:13: error: expected ';' before 'string'
string temp;
^
0_0_13804954_31875.cpp:22:13: error: 'string' was not declared in this scope
0_0_13804954_31875.cpp:22:20: error: expected ')' before 'temp'
string temp;
^
0_0_13804954_31875.cpp:22:20: error: 'temp' was not declared in this scope
0_0_13804954_31875.cpp:23:18: error: expected ';' before 'temp'
cin temp;
^
0_0_13804954_31875.cpp:24:17: error: 'j' was not declared in this scope
ans[j] += temp;
^
0_0_13804954_31875.cpp:24:23: error: 'temp' was not declared in this scope
ans[j] += temp;
^
0_0_13804954_31875.cpp:25:17: error: 'string' has not been declared
for(string::iterator it = temp.begin(); it != temp.end(); ++it)
^
0_0_13804954_31875.cpp:25:53: error: 'it' was not declared in this scope
for(string::iterator it = temp.begin(); it != temp.end(); ++it)
^
0_0_13804954_31875.cpp: At global scope:
0_0_13804954_31875.cpp:28:47: error: 'num' was not declared in this scope
int _max = *max_element(cnt + 1,cnt + num + 1);
^
0_0_13804954_31875.cpp:28:54: error: 'max_element' was not declared in this scope
int _max = *max_element(cnt + 1,cnt + num + 1);
^
0_0_13804954_31875.cpp:29:9: error: expected unqualified-id before 'for'
for(int j = 0; j
^
0_0_13804954_31875.cpp:29:24: error: 'j' does not name a type
for(int j = 0; j
^
0_0_13804954_31875.cpp:30:33: error: 'k' does not name a type
for(int k = cnt[j]; k
^
0_0_13804954_31875.cpp:32:5: error: expected declaration before '}' token
}
^
|